This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Accessibility Issue with md-list-items #9831
Copy link
Copy link
Closed
Labels
BlockedProgress on this issue is blocked. Primarily used for PRs that are blocked by presubmit feedback.Progress on this issue is blocked. Primarily used for PRs that are blocked by presubmit feedback.P0: criticalCritical issues that must be addressed immediately.Critical issues that must be addressed immediately.a11yThis issue is related to accessibilityThis issue is related to accessibility
Milestone
Description
Actual Behavior:
What is the issue? *md-list-item with ng-click on them gets rendered as buttons. These buttons do not actually have any text inside. According to https://www.w3.org/TR/WCAG20-TECHS/H91 a button element should have a name available. For a button a "name" can mean either the text inside or the title attribute.What is the expected behavior?The button element should have a title just like the aria-label attribute with the same content as in the aria-label if there is no text inside the button element.
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:https://material.angularjs.org/latest/demo/listDetails:the first md-list with ng-click on the md-list-item
Angular Versions: *
Angular Version:1.1.1Angular Material Version:1.5.5
Additional Information:
Browser Type: *ChromeBrowser Version: *OS: *Stack Traces:
Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.
Metadata
Metadata
Assignees
Labels
BlockedProgress on this issue is blocked. Primarily used for PRs that are blocked by presubmit feedback.Progress on this issue is blocked. Primarily used for PRs that are blocked by presubmit feedback.P0: criticalCritical issues that must be addressed immediately.Critical issues that must be addressed immediately.a11yThis issue is related to accessibilityThis issue is related to accessibility