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

md-select doesn't read currently selected item in screen readers #3891

Closed
calebegg opened this issue Jul 24, 2015 · 2 comments
Closed

md-select doesn't read currently selected item in screen readers #3891

calebegg opened this issue Jul 24, 2015 · 2 comments
Assignees
Labels
a11y This issue is related to accessibility g3: reported The issue was reported by an internal or external product team. type: enhancement
Milestone

Comments

@calebegg
Copy link
Member

A native <select> reads aloud the currently selected item when you focus it. <md-select> does not. Reproduced in JAWS/Firefox and Chromevox.

This can be reproduced on the demo page.

@ThomasBurleson ThomasBurleson added the needs: review This PR is waiting on review from the team label Jul 31, 2015
@ThomasBurleson ThomasBurleson modified the milestone: REVISIT Jul 31, 2015
@rschmukler rschmukler added type: enhancement and removed needs: review This PR is waiting on review from the team labels Aug 3, 2015
@rschmukler rschmukler modified the milestones: 1.0-beta1, REVISIT Aug 3, 2015
@naomiblack naomiblack modified the milestones: 1.0-beta1, 0.12.0 Aug 14, 2015
@rschmukler
Copy link
Contributor

@marcysutton can you help me out with this?

@rschmukler rschmukler added a11y This issue is related to accessibility priority: medium and removed priority: medium labels Sep 10, 2015
@marcysutton
Copy link
Contributor

There are a few things that make this a challenging one to fix. First, there is no native <input> to put a label on....so, aria-label has been set to "State" on the select. But then, there is no way to announce a default value unless we append it to aria-label, combining the label and value into one string. Second, because the options are not present until you interact with the select and they are in a different part of the DOM, we can't reliably use aria-activedescendant to announce the value.

So, I have two ideas:

  1. try jamming the default value into aria-label along with the actual label (updating with value changes)
  2. move md-select-menu to a descendant of md-select that is always present, instead of injecting on user interaction, and using aria-activedescendant to announce the selected option.

The first one is a total hack, but it's a lot less risk and much more likely to get done.

@jelbourn jelbourn added the g3: reported The issue was reported by an internal or external product team. label Sep 14, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc1, 1.0-rc2, 1.0-rc3 Oct 27, 2015
@rschmukler rschmukler modified the milestones: 1.0-rc4, 1.0-rc3, 1.0-rc5 Nov 4, 2015
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 g3: reported The issue was reported by an internal or external product team. type: enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants