I have one div and div is showing verticle scroll. The problem is the scroll is not showing up and down arrows for scrolling in "Chrome" and "Edge" browsers. Please check the below screen shot of the chrome browser-
]1
But up and down arrows are showing in firefox. Please check the below screen shot-
I am working with react application and I found that if we remove the width attribute of webkit-scroollbar it will work for chrome as well. Currently below css is applying over the div element-
::-webkit-scrollbar {
width: 12px;
}
I tried to override above css but not getting way to remove this 'width' attribute.
You are looking like this code for Chrome. You dont have to use CSS variables, but it helps.
And also this is for Firefox.
Then in React you can put this inside useEffect and change colors if u need.