Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[code] Style scrollbars using the theme colors #110

Closed
pomber opened this issue Jan 15, 2022 · 2 comments
Closed

[code] Style scrollbars using the theme colors #110

pomber opened this issue Jan 15, 2022 · 2 comments
Milestone

Comments

@pomber
Copy link
Contributor

pomber commented Jan 15, 2022

Maybe we can use something like this postcss plugin: https://github.com/pascalduez/postcss-scrollbar, and set some CSS custom properties using the theme colors.

@pomber
Copy link
Contributor Author

pomber commented Jan 20, 2022

Docusaurus uses thin scrollbars
image
maybe we can add that too

@pomber pomber added this to the v0.0.3 milestone Jan 20, 2022
@pomber
Copy link
Contributor Author

pomber commented Feb 14, 2022

After some tests, using the theme colors can be done, but it overrides the MacOS behavior of auto-hiding the scrollbars, so it would be a worse experience for people that prefer that behavior.

What we should do is at least set the color-scheme property that matches the theme.

BTW, Firefox supports the standardized scrollbar CSS properties, and those properties don't override the MacOS behavior.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant