Skip to content

Commit 9f87bca

Browse files
committed
fix(material/snack-bar): fix Firefox/JAWS not reading out snackbar message
1 parent ddc2e23 commit 9f87bca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/material-experimental/mdc-snack-bar/snack-bar-container.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
</div>
1111

1212
<!-- Will receive the snack bar content from the non-live div, move will happen a short delay after opening -->
13-
<div [attr.aria-live]="_live"></div>
13+
<div [attr.aria-live]="_live" role="alert"></div>
1414
</div>
1515
</div>

src/material/snack-bar/snack-bar-container.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
</div>
55

66
<!-- Will receive the snack bar content from the non-live div, move will happen a short delay after opening -->
7-
<div [attr.aria-live]="_live"></div>
7+
<div [attr.aria-live]="_live" role="alert"></div>

0 commit comments

Comments
 (0)