components icon indicating copy to clipboard operation
components copied to clipboard

MatSnackbar politeness overruled by role="alert"

Open bsteffl opened this issue 8 years ago • 1 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Setting the politeness is overruled by role="alert". Role="alert" has inherent value of aria-live="assertive" and therefore interrupts user flow and is read immediately.

What is the current behavior?

Current behavior is that any toast message is deemed as assertive because of role="alert".

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
https://stackblitz.com/edit/angular-nyilhm

image

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

To allow proper announcement of chosen assertiveness. https://www.w3.org/WAI/PF/aria/roles#alert See "Alerts are assertive live regions"

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 6.1.0, Material 6.4.2

Is there anything else we should know?

bsteffl avatar Oct 08 '18 18:10 bsteffl

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.