-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Closed
Copy link
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsdocsThis issue is related to documentationThis issue is related to documentationhelp wantedThe team would appreciate a PR from the community to address this issueThe team would appreciate a PR from the community to address this issue
Description
What is the expected behavior?
All buttons that contain a mat-icon in the example must have an accessible name.
What is the current behavior?
All buttons that contain a mat-icon in the example do not have an accessible name.
What are the steps to reproduce?
- Using either of the following screen readers
- NVDA 2018.4.1 + FireFox 64
- VoiceOver for IOS (12.1.3) + Safari
- Open the button example page
- Press tab until you reach one of the buttons that contain a
mat-icon - Observe that the button does not have an accessible name. Only the role is announced by the screen reader, for example "button".
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
- Angular Material Example 7.2.2 located at https://material.angular.io/components/
- NVDA 2018.4.1 + FireFox 64
- VoiceOver for IOS (12.1.3) + Safari (12.1.3)
Is there anything else we should know?
The documentation for buttons states the following:
Buttons or links containing only icons (such as
mat-fab,mat-mini-fab, andmat-icon-button) should be given a meaningful label viaaria-labeloraria-labelledby.
The button examples that contain only icons should be updated to reflect this advice.
Metadata
Metadata
Assignees
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsdocsThis issue is related to documentationThis issue is related to documentationhelp wantedThe team would appreciate a PR from the community to address this issueThe team would appreciate a PR from the community to address this issue