How to declare scrollbar style globally? #1199
Unanswered
Filippinifra
asked this question in
Q&A
Replies: 1 comment
-
The You'll need to split out each selector into separate globalStyle("*::-webkit-scrollbar", {
width: 50,
});
globalStyle("*::-webkit-scrollbar-track", {
background: "#f1f1f1",
});
globalStyle("*::-webkit-scrollbar-thumb", {
background: "red",
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to style the scrollbar of my website globally, so I want that each element of my website inherit this property if is scrollable
I want to use something like that
but this is not working and throw me an error
Someone can help me please?
Beta Was this translation helpful? Give feedback.
All reactions