-
Notifications
You must be signed in to change notification settings - Fork 1.1k
USWDS - Validation: Remove ability to focus checklist items #5835
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I confirmed that this now has standard tab behavior.
Should we tag this issue for 3.8.1 release? (It is currently marked for 3.9.0) After reviewing this, it feels like a patch fix to me.
@amyleadem Sounds good to me! Updated issue milestone to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Confirming that the tab behavior is gone and requirements are read in voiceover.
This aligns with the USWDS 3.8.1 change: uswds/uswds#5835
This aligns with the USWDS 3.8.1 change: uswds/uswds#5835
Summary
Fixed a bug which caused non-interactive checklist items to receive focus on tab. Now, only the interactive input will receive focus.
Created #5841 as a follow up to enhance screen reader callouts for the validation input element.
Breaking change
This is not a breaking change.
Related issue
Closes #5760
Related pull requests
Changelog →
Preview link
Validation component →
Problem statement
tabindex="0"
was added to checklist items in #4914 to make the validation checklist items easier to navigate via tab.This could prove confusing to keyboard users because text typically isn’t focusable in the DOM unless it’s interactive. 1
Solution
Remove
tabindex
from checklist items.Testing and review
Testing checklist
tabindex
Footnotes
Comment from Amy C. ↩