-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(autocomplete): Chromevox indicates selected option on focus #11441
Conversation
Please presubmit this, but do not merge yet. It looks like this might break JAWS 17 (from 2015) support. I'm waiting to hear back if this works with JAWS 2018. That testing is happening in #10970. |
It looks like this causes some AX errors:
|
For AX_ARIA_06, removed For AX_ARIA_01, this is because For AX_ARIA_04 on For AX_ARIA_04 on The whole GoogleChrome/accessibility-developer-tools project actually appears to be unmaintained and abandoned at this time (no commits since Nov 2017). It looks like Lighthouse and the Google Chrome audits are using aXe instead. I'm not sure what the AX_ARIA_02 error is referring to as aria-labelledby is not used in the demos. However, it's not clear if this audit was run against the demo site or some other app. |
I think it was run against some other app. If you push the updated code I'll re-run the presubmit |
9f425e8
to
95ad50f
Compare
OK, I've pushed an update. This implementation is a bit of a blend of WAI-ARIA 1.0 and 1.1 combobox with the 1.1 pieces trying to be done in a 1.0 compatible way. It still fixes the original Chromevox issue and works reasonably well with macOS VoiceOver. I'll ask over in #10970 for a re-test on JAWS and iOS VoiceOver. |
I also tested this with Lighthouse and got a score of 86 on the autocomplete demo page. All of the issues are from the docs site itself and not the autocomplete elements. I'm going to open another PR for 1.1.12 to fix the docs site a11y issues. |
I'm still seeing a couple |
@mmalerba I'll need more information about the use case and errors here in order to be able to move forward. |
95ad50f
to
ad1f0de
Compare
After getting PR #11475 merged, our autocomplete demo page has a Lighthouse a11y score of We'll need these two in to get |
65deebb
to
92b3790
Compare
I did another round of testing and made some updates to completely align with the Legacy ARIA 1.0 Combobox With List Autocomplete Example instead of the ARIA 1.1 Combobox with Listbox Popup Example as screen reader support for WAI-ARIA 1.1 is very minimal today. |
92b3790
to
8bd23f8
Compare
…lar#11441) - implement WAI-ARIA 1.0 recommendation for autocomplete - avoid changing listbox selection or announcing changes when using arrow keys when a selection has been made and the listbox is closed - set aria-setsize and aria-posinset for dropdown options Fixes angular#10838. Relates to angular#10970.
PR Checklist
Please check that your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
When selecting a value from an auto-complete, Chromevox reads it out as "{md-autocomplete aria-label} {Value} collapsed combo box". It's unclear to the user which part of the text read is the combo-box-name, and which is the value.
Issue Number:
Fixes #10838
What is the new behavior?
With the updates Chromevox will announce the following:
"{md-autocomplete aria-label} {Value} selected Collapsed Combo box"
If required:
"{md-autocomplete aria-label} {Value} selected Collapsed Required Combo box"
Does this PR introduce a breaking change?
Other information
Tested on Chromevox for ChromeOS 69 and VoiceOver for macOS High Sierra and Mojave.