-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Browse Mode: Remove horizontal scrollbar during screen transitions #51189
Browse Mode: Remove horizontal scrollbar during screen transitions #51189
Conversation
Size Change: -12 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
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.
Thanks for fixing this! The flashing scrollbar is quite annoying 😄
The style seems to have been added in this commit to make the sidebar heading sticky. Testing these changes, the heading is still behaving stickily so we should be fine! (I'd expect overflow-y
to have more of an influence in the sticky behaviour than overflow-x
, anyway.)
Judging from the before/after, this looks good, thank you for providing those visuals for a quick sanity check. |
I've tested this on a different OS (linux) using chrome and firefox: I can repro the horizontal scrollbar is present in As for what that rule was for: I cannot provide much insight. It was a very collaborative PR and I see it was introduced at d61d0c2 and it seems it has to do with sticking the header #45100 (comment) As far as I can see, it still works as expected. cc @youknowriad in case he remembers any other thing that could break with this. |
I don't remember to be honest. I tested quickly and I don't see any obvious regression here. |
Thanks for testing and confirming, folks! I'll merge this in, but it's an easy revert if we run into any issues 🙂 |
What?
Remove the
overflow-x: unset;
rule for the browse mode sidebar content, as it resulted in horizontal scrollbars appearing during screen transitions in browsers that are set to always display scrollbars.Why?
To improve how it feels to navigate between screens on browsers / OSes that are set to always display scrollbars
How?
overflow-x: unset;
rule for the sidebar contentTesting Instructions
Set your OS's accessibility settings to always show scrollbars (if on a Mac). Here's how it looks in Monterey:
A question for the reviewer: was this rule needed? Will this removal break anything? I see the rule was added in #45100 by @oandregal, but removing it doesn't immediately appear to break anything, but I might have missed something!
Screenshots or screencast
Look for the flash of horizontal scrollbar during screen transitions below: