Open utterances-bot opened 2 years ago
Hello! Thank you very much!
Thank you very much! You saved me a lot of time.
Thank you very much
It seems difficult to style :focus-visible
for this, at least I can't think of a good way, what do you think?
Hey @aiktb, you'd need to rearrange the markup to do that, so that you can target the controls with a selector like this:
input:focus-visible + .control-wrapper .control {
// ...
}
It might be a bit fiddly to get right. You could also track which control is focused by adding onFocus
and onBlur
handlers to the inputs and keeping track of if the controls are focused in React state.
Building a Range Slider Component in React | Ben Honeywill
Let's make a custom range input component with React.
https://benhoneywill.com/building-a-range-slider-component-in-react/