Skip to content

bug: background-color and position: sticky don't mix well with modal class #1925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adamsmietanka opened this issue Jun 5, 2023 · 3 comments
Assignees

Comments

@adamsmietanka
Copy link

adamsmietanka commented Jun 5, 2023

What version of daisyUI are you using?

3.0.3

Describe your issue

The button div at the bottom has sticky bg-base-100 and I've added a duration-1000 to the modal for clarity. Adding background-transparent resolves the color changing issues but unfortunately removes the background dim. Also works well when sticky is removed

background-problems.mov

What browsers are you seeing the problem on?

Chrome, Safari

Reproduction URL (optional)

No response

@saadeghi
Copy link
Owner

saadeghi commented Jun 5, 2023

Is this the new <dialog> element?
https://daisyui.com/components/modal/#dialog-modal

@adamsmietanka
Copy link
Author

Yes, I'm using the <dialog> element.

image

@saadeghi saadeghi self-assigned this Jun 7, 2023
@adamsmietanka
Copy link
Author

UPDATE: Using modal transition-none retains the size animation, but solves the opacity issues. Minor inconvenience - no animation on close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants