Skip to content

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

Closed
ac-mmi wants to merge 2 commits into
twbs:mainfrom
ac-mmi:main
Closed

Fix: Opening a modal with scrollbar-gutter: stable shifts the page content and shows white (non grey-overlayed) gutters#40736
ac-mmi wants to merge 2 commits into
twbs:mainfrom
ac-mmi:main

Conversation

@ac-mmi

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

Copy link
Copy Markdown

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
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

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

2 participants