-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
Reproduction URL (Required)
https://daisyui.com/components/modal/
What version of daisyUI are you using?
5.0.43
Which browsers are you seeing the problem on?
Chrome
Describe your issue
When you close a modal, you always get a JANKY animation (the dialog jumps left about 15px, the exact size of a scrollbar), which is horrible UX.
THE DEFINITIVE FIX:
instead of using
.modal {
overflow-x: hidden;
overflow-y: hidden;
overscroll-behavior: contain;
}
you can instead do this
.modal {
scrollbar-gutter: auto;
overscroll-behavior: contain; /* this should be optional IMO, but I don't know what this tries to fix/cover */
}
scroll-gutter: auto;
should fix any and all JANKY behaviours with popups and such. Try it let me know.
saadeghi
Metadata
Metadata
Assignees
Labels
No labels