-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)GThis is is related to a Google internal issueThis is is related to a Google internal issueP1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulImpacts a large percentage of users; if a workaround exists it is partial or overly painful
Description
Bug, feature request, or proposal:
a11y bug: mat-select components can create aria-labelledby attributes with invalid values.
What is the expected behavior?
mat-select aria-labelledby values are always valid.
What is the current behavior?
mat-select aria-labelledby values are not always valid.
What are the steps to reproduce?
https://stackblitz.com/edit/angular-vkhysf-pmuokg?file=app/select-value-binding-example.html
- Inspect the mat-select tag on the above page
- Note the value in the aria-labelledby attribute ("mat-form-field-label-1")
- Note that there are no elements on the page with that id.
What is the use-case or motivation for changing an existing behavior?
Achieving GAR4 in my app.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular + Material: HEAD
OS/TS/Browsers: all
Is there anything else we should know?
I believe the issue was introduced in this commit: e349fe4
Metadata
Metadata
Assignees
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)GThis is is related to a Google internal issueThis is is related to a Google internal issueP1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulImpacts a large percentage of users; if a workaround exists it is partial or overly painful