Skip to content

Commit b828909

Browse files
committed
fix(material-experimental/mdc-snack-bar): not aligned correctly on IE11
We were hitting a flexbox bug that was causing the snack bar container to collapse on IE11, shifting it off-center when using the `center` alignment and pushing it completely off-screen in the `end` alignment.
1 parent e99ca0a commit b828909

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
}
1717

1818
// These elements need to have full width using flex layout.
19-
.mat-mdc-snack-bar-handset, .mat-mdc-snack-bar-container, .mat-mdc-snack-bar-label {
20-
flex: 1;
19+
.mat-mdc-snack-bar-handset,
20+
.mat-mdc-snack-bar-container,
21+
.mat-mdc-snack-bar-label {
22+
// Note that we need to include the full `flex` shorthand
23+
// declaration so the container doesn't collapse on IE11.
24+
flex: 1 0 auto;
2125
}

0 commit comments

Comments
 (0)