Skip to content

Commit 85a8854

Browse files
authored
fix(material-experimental/mdc-snack-bar): not stretching to full width on handset (#21477)
Fixes that the MDC-based snack bar gets centered, but it doesn't stretch to the full viewport width on the handset breakpoint.
1 parent 7576475 commit 85a8854

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@
2727
// declaration so the container doesn't collapse on IE11.
2828
flex: 1 1 auto;
2929
}
30+
31+
// Ensures that the snack bar stretches to full width in handset mode.
32+
.mat-mdc-snack-bar-handset .mdc-snackbar__surface {
33+
width: 100%;
34+
}

0 commit comments

Comments
 (0)