Open simonetimi opened 4 months ago
there is a property in dropdown called backdrop , in which you can select blur option it doesn't have the animation problem but blurs out the background too
there is a property in dropdown called backdrop , in which you can select blur option it doesn't have the animation problem but blurs out the background too
That option will have an effect on the whole page (expect for the menu), I'm looking for the exact opposite (I need the menu background to be blurred). So far I can either use a solid background (which unfortunately doesn't match with the rest of the UI) or disable the animation.
I think this problem occurs because backdrop property is added in pop over prop Instead it should have been added to the menu prop
@simonetimi can you minimal reproducible enviroment like CodeSankBox or StackBlitz
@simonetimi can you minimal reproducible enviroment like CodeSankBox or StackBlitz
I set it up on StackBlitz: sandbox
I put some text underneath. When clicking the button, the blur on the menu bg will show only when the animation ends. The sandbox doesn't work for me in Safari for some reason, but this bug is not present in safari anyway.
@simonetimi I observed you issue, the effect is visible in Chrome
and Firefox
but not in safari . I am working on it and will help you soon
any updates?
NextUI Version
2.4.2
Describe the bug
On the Dropdown component, applying a custom background works as expected. However, when applying a tailwind class like backdrop-blur-lg, the effect is applied only at the end of the opening animation, unlike other classes like bg-color.
In my case, I'm trying to make the style consistent with the rest of the UI. Having some semi-transparent UI elements, blur is necessary to keep the text readable. Having it switch to blur only after the animation ends makes it unpleasant. For now I'm disabling the animation but it's obviously not ideal.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
JSX code in client component
Expected behavior
The blur effect should be displayed consistently with the other styles, at the beginning of the animation.
Screenshots or Videos
During the animation
After the animation
Operating System Version
macOS
Browser
Chrome