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

wcag: use appropriate aria roles for search input #1814

Merged
merged 1 commit into from
Apr 24, 2023
Merged

Conversation

benmcginnis
Copy link
Member

A customer noticed that we had an aria-expanded attribute on the search input, which they flagged as incorrect. Based on https://w3c.github.io/aria/#combobox, it appears we need to use the combobox role on the input element and search on the form element.

J=TECHOPS-8758
TEST=auto

Reran acceptance tests

@coveralls
Copy link

coveralls commented Apr 20, 2023

Coverage Status

Coverage: 61.441%. Remained the same when pulling 6a23563 on hotfix/v1.15.5 into 83b13ad on master.

@benmcginnis benmcginnis changed the title wcag: update use appropriate aria roles for search input wcag: use appropriate aria roles for search input Apr 20, 2023
@benmcginnis benmcginnis force-pushed the hotfix/v1.15.5 branch 3 times, most recently from be697fd to d40cbc1 Compare April 24, 2023 15:23
EmilyZhang777
EmilyZhang777 previously approved these changes Apr 24, 2023
A customer noticed that we had an aria-expanded attribute on the
search input, which they flagged as incorrect.  Based on
https://w3c.github.io/aria/#combobox, it appears we need to use
the combobox role on the input element and search on the form
element.

Additionally ran manual accessibility checks with Chrome Lighthouse
and Firefox to inspect the accessibility tree.  This revealed the
need to properly label the autocomplete results listbox control.

J=TECHOPS-8758
TEST=auto, manual

Reran acceptance tests
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.

None yet

4 participants