This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(select): overhaul screen reader support
move to WAI-ARIA's Collapsible Dropdown Listbox practice - https://www.w3.org/TR/2019/NOTE-wai-aria-practices-1.1-20190207/examples/listbox/listbox-collapsible.html - don't apply `aria-required` to `md-select` as it isn't compatible with the button role - the `md-content` element is now the listbox - has the appropriate attributes and a unique id - and receives focus when the pop-up panel opens - `aria-owns` now points to this listbox element so that indexes work - option focus is handled via `aria-activedescendant` - remove `aria-expanded` when collapsed - remove `aria-disabled` attribute when not disabled manually remove `aria-checked` set by ngAria due to ngValue usage apply `md-focused` class to the option with focus improve `ng-multiple` implementation - account for `multiple` attribute on `md-select-menu` remove unused `deregisterCollectionWatch()` fix overloaded variable names don't set `aria-selected="false"` on options in single selection mode stop labels and values from being announced multiple times add JSDoc/Closure Compiler details and types refinements for VoiceOver users clean up watchers, observers, and event handlers on $destroy fix a case where the initial selection model could contain two values - for the empty option, i.e. "" and "None" - deselection was only clearing the first one in single selection mode reduce duplicated code for focusing option nodes improve keyboard option scrolling behavior eliminate duplicate call to `autoFocus()` Fixes #10748. Fixes #10967.
- Loading branch information