How can I style the scrollbars with JSS? The solution below does not work.
'::-webkit-scrollbar-track': {
background: 'red',
},
'::-webkit-scrollbar': {
width: 10,
background: 'red',
},
'::-webkit-scrollbar-thumb': {
background: 'green',
},
In JSS, pseudo-elements are prefixed with an ampersand. Give the following a try:
'&::-webkit-scrollbar-thumb': {
background: '#888'
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With