@@ -53,17 +53,17 @@ $prefix: (mat, button);
53
53
outlined- ripple- color: sass-utils .safe-color-change (map .get ($systems , md-sys-color , primary ), $alpha : map .get ($systems , md-sys-state , pressed-state-layer-opacity )),
54
54
outlined- state- layer- color: map .get ($systems , md-sys-color , primary ),
55
55
protected- container- color: map .get ($systems , md-sys-color , surface ),
56
- protected- container- elevation: map .get ($systems , md-sys-elevation , level1 ),
56
+ protected- container- elevation- shadow : map .get ($systems , md-sys-elevation , level1 ),
57
57
protected- container- height: if ($exclude-hardcoded , null , 40px ),
58
58
protected- container- shape: map .get ($systems , md-sys-shape , corner-full ),
59
59
protected- disabled- container- color: sass-utils .safe-color-change (map .get ($systems , md-sys-color , on-surface ), $alpha : 0.12 ),
60
- protected- disabled- container- elevation: map .get ($systems , md-sys-elevation , level0 ),
60
+ protected- disabled- container- elevation- shadow : map .get ($systems , md-sys-elevation , level0 ),
61
61
protected- disabled- label- text- color: sass-utils .safe-color-change (map .get ($systems , md-sys-color , on-surface ), $alpha : 0.38 ),
62
62
protected- disabled- state- layer- color: map .get ($systems , md-sys-color , on-surface-variant ),
63
- protected- focus- container- elevation: map .get ($systems , md-sys-elevation , level1 ),
63
+ protected- focus- container- elevation- shadow : map .get ($systems , md-sys-elevation , level1 ),
64
64
protected- focus- state- layer- opacity: map .get ($systems , md-sys-state , focus-state-layer-opacity ),
65
65
protected- horizontal- padding: m3-utils .hardcode (24px , $exclude-hardcoded ),
66
- protected- hover- container- elevation: map .get ($systems , md-sys-elevation , level2 ),
66
+ protected- hover- container- elevation- shadow : map .get ($systems , md-sys-elevation , level2 ),
67
67
protected- hover- state- layer- opacity: map .get ($systems , md-sys-state , hover-state-layer-opacity ),
68
68
protected- icon- offset: m3-utils .hardcode (-8px , $exclude-hardcoded ),
69
69
protected- icon- spacing: m3-utils .hardcode (8px , $exclude-hardcoded ),
@@ -72,7 +72,7 @@ $prefix: (mat, button);
72
72
protected- label- text- size: map .get ($systems , md-sys-typescale , label-large-size ),
73
73
protected- label- text- tracking: map .get ($systems , md-sys-typescale , label-large-tracking ),
74
74
protected- label- text- weight: map .get ($systems , md-sys-typescale , label-large-weight ),
75
- protected- pressed- container- elevation: map .get ($systems , md-sys-elevation , level1 ),
75
+ protected- pressed- container- elevation- shadow : map .get ($systems , md-sys-elevation , level1 ),
76
76
protected- pressed- state- layer- opacity: map .get ($systems , md-sys-state , pressed-state-layer-opacity ),
77
77
protected- ripple- color: sass-utils .safe-color-change (map .get ($systems , md-sys-color , primary ), $alpha : map .get ($systems , md-sys-state , pressed-state-layer-opacity )),
78
78
protected- state- layer- color: map .get ($systems , md-sys-color , primary ),
@@ -173,18 +173,18 @@ $prefix: (mat, button);
173
173
);
174
174
175
175
$elevation-tokens : (
176
- protected- container- elevation,
177
- protected- disabled- container- elevation,
178
- protected- focus- container- elevation,
179
- protected- hover- container- elevation,
180
- protected- pressed- container- elevation,
176
+ protected- container- elevation- shadow ,
177
+ protected- disabled- container- elevation- shadow ,
178
+ protected- focus- container- elevation- shadow ,
179
+ protected- hover- container- elevation- shadow ,
180
+ protected- pressed- container- elevation- shadow ,
181
181
);
182
182
183
183
@each $token in $elevation-tokens {
184
184
$elevation : map .get ($tokens , $token );
185
185
186
186
@if ($elevation != null) {
187
- $tokens : map .set ($tokens , $token + - shadow , elevation .get-box-shadow ($elevation ));
187
+ $tokens : map .set ($tokens , $token , elevation .get-box-shadow ($elevation ));
188
188
}
189
189
}
190
190
0 commit comments