Skip to content
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

bug: Modal Dialog Adds A None Existent Scrollbar Spacing To Backdrop #3040

Open
MunkeeJuice opened this issue May 17, 2024 · 5 comments
Open

Comments

@MunkeeJuice
Copy link

What version of daisyUI are you using?

4.10.5

Which browsers are you seeing the problem on?

Chrome, Edge

Reproduction URL

https://play.tailwindcss.com/V7z8gOaVTT

Describe your issue

When a modal dialog opens the backdrop behind shifts left due to a space appearing where the y-scrollbar should be, even though it is not showing a scrollbar before the dialog is opened.

Copy link

Thank you @MunkeeJuice 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.

@MunkeeJuice MunkeeJuice changed the title bug: Modal Dialog Cause Add None Existent Scrollbar Spacing To Backdrop bug: Modal Dialog Adds A None Existent Scrollbar Spacing To Backdrop May 17, 2024
@MunkeeJuice
Copy link
Author

As far as i can see this only happens on Chromium based browsers, the issue does not occur in firefox

@keksiskela
Copy link

Same behavior with drawers (the code is pretty much identical to stock navbar + drawer component); only on Chrome, and only on desktop. Seems to affect all overlays.

https://play.tailwindcss.com/Dgv6PeF5C4

@simonechebelnome
Copy link

I'm having the same problem, did anyone find a solution? I've tried overriding the ::-webkit-scrollbar pseudo class with no results

@mpoweredo
Copy link

mpoweredo commented May 25, 2024

html {
  scrollbar-gutter: auto !important;
}

seems to fix the issue

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

4 participants