Improve filterable list controls a11y #5996
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a
group
role to the filterable list controls checkboxes parents so that screenreaders announce the group name when navigating to the checkbox children.Normally our use of
<legend>
and<label>
would do this automatically but we nest the checkboxes inside an unordered list so we need to manually tell the browser that the items are grouped.See https://github.local/CFGOV/platform/issues/3356 for background.
Additions
role
attribute to the category and status unordered lists.How to test this PR
Category
checkboxes in the filter controls.Checklist
/docs
folder) – for basic, close-to-the-code docs on working with this repoFront-end testing
Browser testing
Visually tested in the following supported browsers:
Accessibility
Other