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
Description
Bug
Detailed Reproduction Steps:
- Set up an md-autocomplete, and provide a distinct "not found" message using md-not-found.
- Turn on a screen reader
- 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)