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

Fix: Opening a modal with scrollbar-gutter: stable shifts the page content and shows white (non grey-overlayed) gutters #40736

Closed
wants to merge 2 commits into from

Conversation

ac-mmi
Copy link

@ac-mmi ac-mmi commented Aug 15, 2024

This pull request addresses #40659 issue.
I have modified the modal code to check if the parent or any ancestor element contains scrollbar-gutter: stable. If it does, the additional padding is removed, preventing the content shift

Closes #40659

@ac-mmi ac-mmi requested a review from a team as a code owner August 15, 2024 13:58
@louismaximepiton
Copy link
Member

Hey, thanks for your contribution to the project.

The issue is raised on something that we don't support yet, that is not supported by all major browsers and that is quite new (still not a baseline). Since the original issue is pointing out some CSS problem, the fix should implement only CSS. Feel free to open a PR using progressive enhancement on CSS.

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