You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Clicking on a label under a parent with a tabindex will cause the interaction modality to switch to virtual on pointerup. This is most noticeable with visually hidden inputs as the label is the entire hit area but still appears on normal ones as well. Initially noticed this on a checkbox within a dialog, as dialogProps adds tabIndex: -1.
Description
Clicking on a
label
under a parent with atabindex
will cause the interaction modality to switch tovirtual
on pointerup. This is most noticeable with visually hidden inputs as the label is the entire hit area but still appears on normal ones as well. Initially noticed this on a checkbox within a dialog, asdialogProps
addstabIndex: -1
.Reproduction
https://codesandbox.io/s/old-sunset-yi0z91?file=/src/main.tsx
Clicking on the checkbox under a parent tab index will show the focus ring.
Workarounds
isFocusVisible() && inputRef?.matches(':focus-visible')
The text was updated successfully, but these errors were encountered: