Skip to content
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

Add fieldset to documents date filter #8635

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

johnny-m-young
Copy link
Contributor

@johnny-m-young johnny-m-young commented Dec 14, 2023

What

  • Groups the date header and filter fields on the documents search page by wrapping them in a fieldset

Why

This was highlighted in the most recent accessibility report. Without the group context, it is difficult to tell the purpose of these fields when using a screen reader as they are read in isolation with no programatic link to the header.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

@johnny-m-young johnny-m-young force-pushed the dac-information-relationships-06 branch 2 times, most recently from 6523591 to 134f2b9 Compare December 19, 2023 12:16
Wraps the to-date and from-date filters in a fieldset with the
date header assigned as a legend. This programatically links all
of these elements which makes it easier for people using screen
readers to tell the purpose of the fields.
@johnny-m-young johnny-m-young force-pushed the dac-information-relationships-06 branch from 134f2b9 to 2a4d56c Compare December 19, 2023 16:02
@johnny-m-young johnny-m-young marked this pull request as ready for review December 19, 2023 16:04
Copy link
Contributor

@davidgisbey davidgisbey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@johnny-m-young johnny-m-young merged commit ba8c1f3 into main Dec 19, 2023
18 checks passed
@johnny-m-young johnny-m-young deleted the dac-information-relationships-06 branch December 19, 2023 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants