I've encountered an issue with my code after the latest Chrome update. Is there a way to implement cross-browser styling for scrollbars?
// Looking for Scrollbar Styling Solution
const scrollbarStyle = {
scrollbarColor: `${themeLayers.scrollBar[0]} ${themeLayers.scrollBar[1]}`,
'&::-webkit-scrollbar, & *::-webkit-scrollbar': {
backgroundColor: `${themeLayers.scrollBar[1]}`,
width: 12,
},
'&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
borderRadius: 6,
backgroundColor: `${themeLayers.scrollBar[0]}`,
minHeight: 24,
border: `2.5px solid ${themeLayers.scrollBar[1]}`,
},
'&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
backgroundColor: `${themeLayers.scrollBar[0]}`,
},
'&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
backgroundColor: `${themeLayers.scrollBar[0]}`,
},
'&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
backgroundColor: `${themeLayers.scrollBar[0]}`,
},
'&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
backgroundColor: `${themeLayers.scrollBar[1]}`,
},
};