saadeghi/daisyui

bug: The drop-down menu is blocked by other elements with (relative,filter, opacity) attributes such as

mgl-pub opened this issue · 3 comments

What version of daisyUI are you using?

4.7.2

Which browsers are you seeing the problem on?

All browsers

Reproduction URL

https://play.tailwindcss.com/pv83KjArts

Describe your issue

Screenshot from 2024-02-29 10-42-18
Screenshot from 2024-02-29 10-42-34
Screenshot from 2024-02-29 10-43-13
Screenshot from 2024-02-29 10-43-32

Thank you @mgl-pub for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@mgl-pub you can use z-index to fix this issue.

Here's an example of using z-index:
https://play.tailwindcss.com/OpDgqCSiDT

The reason we don't use z-index values in the components by default is that z-index value should be decided based on the content of the page. sometimes you may want a menu to be on top of another element or sometimes you may want other elements to be on top.

Let me know if you have a question.