Open luangjokaj opened 6 months ago
What you're trying to achieve is essentially a descendent selector which isn't officially supported. This kind of case is what is what we are still trying to solve.
You will need to use CSS variables as a workaround for this.
Describe the issue
I have been playing around with Stylex lately and I absolutely love it. I am already re-writing our design system based on this technology. So first thing first congrats on that π―
I am currently styling input ranges (
<input type="range" />
). I can style the:hover
and:active
states without any problem, but for some reason:focus
doesn't behave the same way.As we know input ranges are a bit more complex to be styled, as we need to target also pseudo-elements to make it look consistent across browsers. In this case i am using:
Expected behavior
The expected behaviour is that
:focus
should work just the same way as as:hover
, or `:active.Steps to reproduce
Test case
No response
Additional comments
Here is the entire components with styles included: