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

fix(select): expose and preserve aria-label #2672

Closed
wants to merge 1 commit into from

Conversation

marcysutton
Copy link
Contributor

Select previously used aria-labelledby pointing to <md-select-label>, which worked fine until a value was selected, wiping out the accessible name for the select. To inform screen reader users what a particular select is for, the contents from placeholder="" or <md-select-label> are copied to an aria-label attribute on <md-select> instead. A warning is logged to the console if neither value is present.

Closes #1893

@marcysutton marcysutton added this to the 0.9.0 milestone May 2, 2015
@ajoslin ajoslin added the in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs label May 2, 2015
@ThomasBurleson ThomasBurleson self-assigned this May 2, 2015
@marcysutton marcysutton added resolution: fixed and removed in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs labels May 2, 2015
@ThomasBurleson
Copy link
Contributor

@marcysutton - love your PRs with unit tests added. 👍

@marcysutton marcysutton deleted the wip-select-arialabel branch May 4, 2015 19:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mdSelect: accessibility label lost when item is selected
3 participants