We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4457585 commit e37fc1aCopy full SHA for e37fc1a
src/lib/snack-bar/snack-bar-container.ts
@@ -80,12 +80,12 @@ export class MatSnackBarContainer extends BasePortalOutlet implements OnDestroy
80
81
// Based on the ARIA spec, `alert` and `status` roles have an
82
// implicit `assertive` and `polite` politeness respectively.
83
- if (snackBarConfig.politeness === 'assertive') {
+ if (snackBarConfig.politeness === 'assertive' && !snackBarConfig.announcementMessage) {
84
this._role = 'alert';
85
- } else if (snackBarConfig.politeness === 'polite') {
86
- this._role = 'status';
87
- } else {
+ } else if (snackBarConfig.politeness === 'off') {
88
this._role = null;
+ } else {
+ this._role = 'status';
89
}
90
91
0 commit comments