Closed
Description
What is the expected behavior?
Screen reader should announce snack bar message only once.
What is the current behavior?
Using open
API method the message is announced twice because:
- role='status' behaves as aria-live and this role is assigned to massage wrapper
- MatSnackBar uses LiveAnnouncer (or smth similar from cdk a11y module) to announce message.
What are the steps to reproduce?
- Open shared example
https://stackblitz.com/angular/krygnaabbpg?file=app%2Fsnack-bar-overview-example.ts - Enable SR.
- Go to "Show Snack-bar" button and press Enter.
- Observe the result - snack-bar's message is announced twicw
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Chromevox- Google Chrome OS Version 64.0.3282.190