File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
src/material/core/tokens/m2/mdc Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 2
2
@use ' sass:map' ;
3
3
@use ' sass:meta' ;
4
4
@use ' ../../token-utils' ;
5
- @use ' ../../../mdc-helpers/mdc-helpers' ;
6
5
@use ' ../../../style/sass-utils' ;
7
6
@use ' ../../../theming/theming' ;
8
7
@use ' ../../../theming/inspection' ;
@@ -230,15 +229,10 @@ $prefix: (mdc, chip);
230
229
$foreground : if ($is-dark , $grey-50 , $grey-900 );
231
230
232
231
$surface : inspection .get-theme-color ($theme , background , card );
233
- $on-surface : if (
234
- mdc-helpers .variable-safe-contrast-tone ($surface , $is-dark ) == ' dark' ,
235
- #000 ,
236
- #fff
237
- );
238
232
$background : if (
239
- meta .type-of ($on-surface ) == color and meta .type-of ($surface ) == color ,
240
- color .mix ($on-surface , $surface , 12% ),
241
- $on-surface
233
+ meta .type-of ($state-layer-color ) == color and meta .type-of ($surface ) == color ,
234
+ color .mix ($state-layer-color , $surface , 12% ),
235
+ $state-layer-color
242
236
);
243
237
}
244
238
@else {
You can’t perform that action at this time.
0 commit comments