-
Notifications
You must be signed in to change notification settings - Fork 4k
[fix] Sidebar sizing issue under certain conditions #10733
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
Conversation
21c80c8 to
7732559
Compare
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
✅ PR preview is ready!
|
0b69aef to
43a60eb
Compare
sfc-gh-nbellante
left a comment
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.
nice!
|
oh yeah also heads up that the padding on the sidebar is changing to be smaller anyways, so i wouldn't worry too much about needing to keep it the same visually. |
fc472c5 to
034713c
Compare
Describe your changes
scrollbar-gutterCSS property to ensure that space is reserved for scrollbars, even when they are not visible, preventing layout shifts when the scrollbars appear and disappear.scrollbar-gutteralso brings with it some visual differences since the browser now reserves space for the scrollbar. The actual amount of space will be different between browsers and OSes.scrollbar-gutteris going to be narrower than before due to the newly reserved space.scrollbar-gutteris the right way to solve this given the deprecation ofoverflow: overlay. Using custom scrollbars to attempt to achieveoverflow: overlayis worse for a11y, whereas this is the recommended browser standard.overflow: overlayin code since that has been removed from browsers for the last ~3 years and functionally acts asoverflow: auto. See Can I Use for docs.GitHub Issue Link (if applicable)
Fixes #10310
Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.