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

Conversation

jeyoshimi
Copy link
Contributor

  1. Add role="presentation" to the container divs so assistive technology
    (primarily VoiceOver) to accurately count and announce "item 3 of 7".
    https://www.w3.org/TR/wai-aria/roles#presentation

  2. Only add aria-owns when the md-select element does not contain its
    menu element in the DOM. This means when the select is opened, as
    opening the select means the element, previously nestled within
    md-select, gets appended to the end of the DOM.

  3. Dynamically hide md-select-value with aria-hidden to get an accurate
    item count for the md-select. This can't just be hidden all the time
    because VoiceOver does not allow linear navigation into selects with no
    visible options.

  4. Move autoFocus call to after the select menu element is fully rendered
    in order to properly focus the first item in the select.

Addresses some points in #9908.

read list item position

1. Add role="presentation" to the container divs so assistive technology
(primarily VoiceOver) to accurately count and announce "item 3 of 7".
https://www.w3.org/TR/wai-aria/roles#presentation

2. Only add aria-owns when the md-select element does not contain its
menu element in the DOM. This means when the select is opened, as
opening the select means the element, previously nestled within
md-select, gets appended to the end of the DOM.

3. Dynamically hide md-select-value with aria-hidden to get an accurate
item count for the md-select. This can't just be hidden all the time
because VoiceOver does not allow linear navigation into selects with no
visible options.

4. Move autoFocus call to after the select menu element is fully rendered
in order to properly focus the first item in the select.

Addresses some points in angular#9908.
@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Jun 22, 2017
@jeyoshimi
Copy link
Contributor Author

@jelbourn A couple more accessibility fixes for the md-select :)

@ThomasBurleson
Copy link
Contributor

lgtm

@ThomasBurleson ThomasBurleson added this to the 1.1.5 milestone Jun 22, 2017
@ThomasBurleson ThomasBurleson added a11y This issue is related to accessibility needs: presubmit labels Jun 22, 2017
@kara kara added pr: merge ready This PR is ready for a caretaker to review and removed needs: presubmit labels Jul 18, 2017
@kara kara merged commit 28d4bf2 into angular:master Jul 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a11y This issue is related to accessibility cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ 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.

4 participants