Replies: 4 comments 3 replies
-
Same issue here. |
Beta Was this translation helpful? Give feedback.
-
This worked for me on Windows
|
Beta Was this translation helpful? Give feedback.
-
The issue stems from this code here: html {
scrollbar-width: thin; /* Firefox /
scrollbar-color: blue orange; / Firefox */
} Your comment syntax is broken and breaks the rest of your css. Try removing the Firefox comments and you'll see that it works. I tested it and it worked on my Windows 11 machine. |
Beta Was this translation helpful? Give feedback.
-
The above isn't working for me on Mac. It'll change the width, but not the color. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My system is Windows 11,I wrote this code in index.scss, but it does not take effect. Other codes written in index.scss can take effect.
`html {
scrollbar-width: thin; /* Firefox /
scrollbar-color: blue orange; / Firefox */
}
body::-webkit-scrollbar {
width: 12px;
}
body::-webkit-scrollbar-track {
background: orange;
}
body::-webkit-scrollbar-thumb {

background-color: blue;
border-radius: 20px;
border: 3px solid orange;
}`
My scrollbar still looks like this
Beta Was this translation helpful? Give feedback.
All reactions