Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
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

Closed
@NilsAtGoogle

Description

@NilsAtGoogle

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:

  1. Have a screen reader to read through the contents

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?

  • AngularJS: >v1.6
  • AngularJS Material: >v1.1
  • OS: any
  • Browsers: Chrome / ChromeVox (not tested with JAWS, NVDA, etc.)

Is there anything else we should know? Stack Traces, Screenshots, etc.

Metadata

Metadata

Assignees

Labels

P2: requiredIssues that must be fixed.a11yThis issue is related to accessibilityg3: reportedThe issue was reported by an internal or external product team.has: Pull RequestA PR has been created to address this issuetype: bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions