This repository was archived by the owner on Sep 5, 2024. It is now read-only.
list-item: default ariaLabel causes list items to be read twice #11582
Labels
a11y
This issue is related to accessibility
g3: reported
The issue was reported by an internal or external product team.
has: Pull Request
A PR has been created to address this issue
P2: required
Issues that must be fixed.
type: bug
Milestone
Bug, enhancement request, or proposal:
When a clickable / linkable mdListItem is provided without an aria-label, the directive creates a button/link with an aria-label. Because this element and the original inner contents are siblings, asking a screen reader to read through the document results in both the created link and the content to be read, which is awkward for screen reader users.
CodePen and steps to reproduce the issue:
CodePen Demo which demonstrates the issue:
https://codepen.io/nil_ptr/pen/LMrxOV
Detailed Reproduction Steps:
What is the expected behavior?
Link contains the actual contents, or some other solution which prevents the contents from being read twice.
What is the current behavior?
Screen reader reads link's aria label, then reads the sibling DOM
What is the use-case or motivation for changing an existing behavior?
Providing an accurate experience for assistive technology
Which versions of AngularJS, Material, OS, and browsers are affected?
Is there anything else we should know? Stack Traces, Screenshots, etc.
The text was updated successfully, but these errors were encountered: