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

Stop labels being read out multiple times #377

Merged
merged 1 commit into from
May 23, 2024
Merged

Stop labels being read out multiple times #377

merged 1 commit into from
May 23, 2024

Conversation

Abban
Copy link
Member

@Abban Abban commented Apr 26, 2024

There are 3 forms on the donation page that had duplicated fields causing the screen reader to read all of them.

  • Adds namespacing for the forms so each field has a unique id and label attached
  • Adds parameters for explicitly setting ids to form fields
  • Fix tests and hookups

Ticket: https://phabricator.wikimedia.org/T362951

@moiikana moiikana added 🦮 accessibility code that improves accessibility rebase needed labels Apr 29, 2024
Copy link
Member

@gbirke gbirke left a comment

Choose a reason for hiding this comment

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

Tested with screen reader, works fine for almost all fields. Only the newsletter checkbox is read 3 times (because it has no id prefix)
I could also not tab to the newsletter checkbox (not in the scope of this ticket, but discovered it by testing).

There are 3 forms on the donation page that had duplicated
fields causing the screen reader to read all of them.

- Adds namespacing for the forms so each field has a unique
id and label attached
- Adds parameters for explicitly setting ids to form fields
- Fix tests and hookups

Ticket: https://phabricator.wikimedia.org/T362951
@Abban Abban merged commit c73b0ee into main May 23, 2024
3 checks passed
@Abban Abban deleted the label-namespaces branch May 23, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦮 accessibility code that improves accessibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants