Style range slider
I'm styling a single-thumb <input type="range"> slider using SCSS. A lot of my styles are duplicated across ::-webkit-slider-thumb and ::-moz-range-thumb, so I tried combining them using a comma selector—but then the styles stopped applying. Is that a WebKit vs. Mozilla thing?
Also, I’m struggling to add proper :hover and :focus effects to both the slider thumb and the filled track (that is made possible with the border-image trick).
Here’s the React component:
And here are the SCSS styles:

1 Reply
you can use a placeholder selector for this
for example:
or you can try to
@extend
the pseudo-element