Skip to content

Commit 6822b55

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 6822b55

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
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+
// We use the individual properties, instead of the
23+
// shorthand `flex`, because of some layout issues on IE11.
24+
flex-grow: 1;
25+
flex-shrink: 0;
2126
}

0 commit comments

Comments
 (0)