-
Notifications
You must be signed in to change notification settings - Fork 297
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
[ENH] Option to disable scrollbar theming (::-webkit-scrollbar css) #1239
Comments
Some history on this very one. We decided to go with customized scrollbar when this theme started to support dark and light modes. As one could request a dark website in a light themed browser we wanted to ensure some compatibility. that being said and as you mentioned the theme needs to remain compatible with multiple browser and devices, reason why we prefered thin scrollbar to save the extra pixels for phones and tablets. Lookin at your problem, I guess you are in the minority but that does not mean your problem is irrelevant. I rappidely checked and the custom scrollbar is applied as a mixin in scss so. Few chances you can change it from your side (custom.css) appart by resetting all element using it. From our side I don't see any easy way to do it with a parameter either as the mixin is applied when the css file is build. I also found this article: https://ericwbailey.website/published/dont-use-custom-css-scrollbars/ which is also advocating against customized scrollbars. It seems customizing scrollbars is not a thing anymore so let me ping other active maintainers to see how we should proceed. |
Linking here to another blog post from Adrian Rosellini https://adrianroselli.com/2019/01/baseline-rules-for-scrollbar-usability.html Which points in the same direction as Eric Bailey's one - not customising the scrollbar. |
+1 for removing scrollbar customization. |
+1 from me if it harms accessibility and is complex |
ok it looks like unanimity to me. I'll prepare a PR soon |
Would it be possible to have a config option to skip all
::-webkit-scrollbar
css?I'm using jupyter-book for my docs in multiple projects. And I love it. But recently the default sphinx-book-theme became dependent on pydata-sphinx-theme, and with this change, all of the scrollbars have been themed. I personally don't like thin scrollbars and would like to use my browser's default scrollbar (I mostly use Chromium). I use a mouse, never a trackpad. I do use the scrollwheel on my mouse, but tend to grab the scrollbar a lot anyhow, particularly for the
body
css element. I never read API docs on a phone or tablet, so I'm not at all concerned with wasting an extra 16 pixels or whatever. Maybe I'm in the minority here.Unfortunately, the
::-webkit-scrollbar
family of css elements seem to be impossible to override (e.g. in a_static/custom.css
file) in such a way that reverts things back to the default scrollbar---one must manually recreate each part of the scollbar (I tried variants based off https://www.reddit.com/r/userstyles/comments/qjwlet/how_to_reset_scrollbar_styles/hiz7d2c/?context=8&depth=9). My browser (Chromium) provides no user-configurable way to ignore::-webkit-scrollbar
and friends, and I daresay other browsers are equally hostile to user preference.Finally, I'll leave you with some quotes regarding the webkit-scrollbar elements...
https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbar
https://www.w3.org/TR/css-scrollbars-1/#out-of-scope
The text was updated successfully, but these errors were encountered: