Skip to content

Commit a90abb0

Browse files
committed
fix(material/snack-bar): add max height for snack bar (#32000)
Adds a max height for the snack bar in case users pass huge strings into it. Fixes #31996. (cherry picked from commit 5f12b26)
1 parent 81c62fa commit a90abb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/material/snack-bar/simple-snack-bar.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22
// wrapping layer to the mdc-snackbar__surface, it should also include flex display.
33
.mat-mdc-simple-snack-bar {
44
display: flex;
5+
6+
.mat-mdc-snack-bar-label {
7+
max-height: 50vh;
8+
overflow: auto;
9+
}
510
}

0 commit comments

Comments
 (0)