-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(modal): prevent modal from shifting when scrollbar appears #5119
fix(modal): prevent modal from shifting when scrollbar appears #5119
Conversation
Deploy preview for the-carbon-components ready! Built with commit e5167ac https://deploy-preview-5119--the-carbon-components.netlify.com |
Deploy preview for carbon-elements ready! Built with commit e5167ac |
Deploy preview for carbon-components-react failed. Built with commit e5167ac https://app.netlify.com/sites/carbon-components-react/deploys/5e27888dda57ef00088f0140 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore this
Closes #4435
This PR prevents the scroll bar from shifting modal position when opening or closing
Changelog
Changed
Testing / Reviewing
with scrollbars always displayed (default on Windows, instructions for macOS in original ticket), open and close the modal and observe that the modal position does not shift left/right due to the scrollbar being affected by the modal overlay