Open punkpeye opened 2 months ago
ah, after some troubleshooting, I realized it is not the button, but the hidden checkbox.
Patching the code to have:
<StyledSwitch.HiddenInput tabIndex={-1} />
fixed my issue. so I guess this is non-issue for me, but something that should still be addressed in the generated code.
I want to set
tabIndex={-1}
on a button associated with a switch component. Appears like there is no way of doing that at the moment. I tried:But the value does not propagate to the button.
My use case is that the equivalent functionality is provided through other means for accessibility, and this switch button is purely for mouse interactions.