Hi,
when I use "tab" for switching between buttons and inputs, the hidden checkbox input .react-toggle-screenreader-only is focusable, but I can't handle this state.
I suggest one of following (or both allowing to choose the one from these):
- Add
tabIndex="-1" to this checkbox, so the whole toggle become not focusable.
- (Better) Add
...-focus or ...-active or similar class to .react-toggle-track or .react-toggle when this checkbox is in focus, so I can style the focus state of the toggle.
The one more step should be add role="switch" to .react-toggle
Thanks.
Hi,
when I use "tab" for switching between buttons and inputs, the hidden checkbox input
.react-toggle-screenreader-onlyis focusable, but I can't handle this state.I suggest one of following (or both allowing to choose the one from these):
tabIndex="-1"to this checkbox, so the whole toggle become not focusable....-focusor...-activeor similar class to.react-toggle-trackor.react-togglewhen this checkbox is in focus, so I can style the focus state of the toggle.The one more step should be add
role="switch"to.react-toggleThanks.