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.

autocomplete: use <md-not-found> message instead of hardcoded message for ARIA #11789

Closed
@mkowalchuk

Description

@mkowalchuk

Bug

Detailed Reproduction Steps:

  1. Set up an md-autocomplete, and provide a distinct "not found" message using md-not-found.
  2. Turn on a screen reader
  3. Enter some text into the autocompleter that results in the "not found" message being shown.

What is the expected behavior?

The screen reader should announce the contents of the md-not-found element.

What is the current behavior?

The screen reader announces "There are no matches available"

What is the use-case or motivation for changing an existing behavior?

Users of screen readers should hear the same message that's shown on the screen.

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS: 1.6
  • AngularJS Material: 1.1.19
  • OS: ChromeOS
  • Browsers: Chrome
  • Screen reader: ChromeVox

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

Relevant code:
https://github.com/angular/material/blob/master/src/components/autocomplete/js/autocompleteController.js (getCountMessage)

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 issuei18n: localizationThis issue is related to internationalizationresolution: fixedtype: enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions