-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Focus states don't work on checkbox inputs #7771
Comments
Interestingly enough, it actually might have something to do with the |
After a little more digging, it would appear that it's a result of the |
Note: This is something we can easily add in userland, but felt it best to fix it here, since it's a major accessibility issue |
Thanks for your report and for the fix you have provided! |
If the cause is the disableRipple (which we added for performance reasons), then we should remove this disableRipple, and let developers looking for performance re-add it in userland if they want. |
What you were expecting:
WHen navigating through the CheckboxGroupInput inputs, there should be a visible indicator when using the TAB key
What happened instead:
No way to indicate which of the checkboxes is focused
Steps to reproduce:
Navigate to the post page
Tab through the page
Observe the lack of styles on focus
This is likely due to the styles being applied to the
focus
pseudo class of thespan
element. But thespan
element isn't focusable via keyboard. Instead we should leverage thefocus-within
pseudo class to display focus styles if the childinput
element is focusedI can create a quick PR for this
Other information:
Environment
The text was updated successfully, but these errors were encountered: