Skip to content

Commit 96e670f

Browse files
devversionjelbourn
authored andcommitted
fix(snackbar): move elevation style to snackbar theme (#13273)
Fixes a remaining elevation style which is not created inside of the theme. (related to: #11344)
1 parent e1071f0 commit 96e670f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/lib/snack-bar/_snack-bar-theme.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import '../core/typography/typography-utils';
22
@import '../core/theming/palette';
3+
@import '../core/style/elevation';
34

45
@mixin mat-snack-bar-theme($theme) {
56
$is-dark-theme: map-get($theme, is-dark);
@@ -10,6 +11,8 @@
1011
// a secondary, because the contrast on the light primary text is poor.
1112
color: if($is-dark-theme, $dark-primary-text, $light-secondary-text);
1213
background: if($is-dark-theme, map-get($mat-grey, 50), #323232);
14+
15+
@include _mat-theme-elevation(6, $theme);
1316
}
1417

1518
.mat-simple-snackbar-action {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@import '../../cdk/a11y/a11y';
2-
@import '../core/style/elevation';
32

43
$mat-snack-bar-padding: 14px 16px !default;
54
$mat-snack-bar-min-height: 48px !default;
@@ -10,7 +9,6 @@ $mat-snack-bar-spacing-margin-handset: 8px !default;
109

1110

1211
.mat-snack-bar-container {
13-
@include mat-elevation(6);
1412
border-radius: 4px;
1513
box-sizing: border-box;
1614
display: block;

0 commit comments

Comments
 (0)