Skip to content

Commit 0cbedf1

Browse files
committed
fix(material/snack-bar): add max height for snack bar
Adds a max height for the snack bar in case users pass huge strings into it. Fixes #31996.
1 parent 74060b1 commit 0cbedf1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ $fallbacks: m3-snack-bar.get-tokens();
101101
box-sizing: border-box;
102102
margin: 0;
103103
padding: 14px $_side-padding 14px 16px;
104+
max-height: 50vh;
105+
overflow: auto;
104106

105107
[dir='rtl'] & {
106108
padding-left: $_side-padding;

0 commit comments

Comments
 (0)