Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

[accessibility] Autocomplete should use role=combobox #7941

Closed
wants to merge 1 commit into from

Conversation

tirana
Copy link
Contributor

@tirana tirana commented Apr 7, 2016

from https://www.w3.org/TR/wai-aria/roles#combobox
"Typically editable combo boxes are used for autocomplete behavior, and authors SHOULD set aria-autocomplete attribute on the textfield."

Typically editable combo boxes are used for autocomplete behavior, and authors SHOULD set aria-autocomplete attribute on the textfield.
https://www.w3.org/TR/wai-aria/roles#combobox
@ThomasBurleson
Copy link
Contributor

@marcysutton - can you review ?

@ThomasBurleson ThomasBurleson added the needs: review This PR is waiting on review from the team label Apr 8, 2016
@ThomasBurleson ThomasBurleson self-assigned this Apr 8, 2016
@marcysutton
Copy link
Contributor

Is a fix for an issue with the usability of the autocomplete, or have you tested it? I know of one issue that is open related to this, but it worked correctly in a variety of browser and AT combos when we chose the current semantics. #6042

@tirana
Copy link
Contributor Author

tirana commented Apr 8, 2016

  1. a user who is blind reported an issue with a search box. the our search box is md-autocomplete.
    the element has annotation for screen reader yet it's incorrect.
    our accessibility QA said that role was wrong.
  2. I looked at google.com search box which had similar logic and found that role=combobox was used.
  3. I looked at the doc and found that combobox is recommend role for autocomplete input fields. https://www.w3.org/TR/wai-aria/roles#combobox

testing: I uses http://www.chromevox.com/ for testing.
using dev tool I manually changed role and compared description
edit text vs combobox autocompletion

@tirana
Copy link
Contributor Author

tirana commented Apr 8, 2016

BTW, #6042 the first point is exactly the same what I did
Remove role="listbox" from <md-autocomplete-wrap>, add role="combobox" to <input>,

@tirana
Copy link
Contributor Author

tirana commented Apr 14, 2016

@marcysutton Does it make sense?

@marcysutton
Copy link
Contributor

Makes sense to me, I just don't have time to test it at the moment. If you can confirm it still works with the Material-supported browsers and a few screen readers, that would help a lot. Some good targets for that would be Firefox/NVDA, Safari/Voiceover, and optionally IE11 and JAWS (which has a free 40 minute mode). Chromevox nor Chrome/Voiceover are widely used, so we didn't focus on those in the past.

@tirana
Copy link
Contributor Author

tirana commented Apr 15, 2016

confirmed. combobox sounds better

@marcysutton
Copy link
Contributor

Yay, that's great! LGTM, ship it!

@ThomasBurleson ThomasBurleson added pr: merge ready This PR is ready for a caretaker to review and removed needs: review This PR is waiting on review from the team labels Apr 19, 2016
@ThomasBurleson ThomasBurleson added this to the 1.1.0 milestone Apr 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants