File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1919 );
2020
2121 @for $zValue from 0 through 24 {
22- $elevation-color : inspection .get-theme-color ($theme , foreground , elevation );
23- $shadow : elevation .get-box-shadow ($zValue ,
24- if ($elevation-color == null , elevation .$color , $elevation-color ));
22+ $shadow : elevation .get-box-shadow ($zValue , map .get ($system , shadow ));
2523 $tokens : map .set ($tokens , ' app-elevation-shadow-level-#{$zValue } ' , $shadow );
2624 }
2725
Original file line number Diff line number Diff line change 134134 hover- state- layer- opacity: 0.04 ,
135135 focus- state- layer- opacity: 0.12 ,
136136 pressed- state- layer- opacity: 0.12 ,
137+ shadow : black ,
137138 ),
138139 );
139140}
159160 hover- state- layer- opacity: 0.04 ,
160161 focus- state- layer- opacity: 0.12 ,
161162 pressed- state- layer- opacity: 0.12 ,
163+ shadow : black ,
162164 ),
163165 );
164166}
Original file line number Diff line number Diff line change 11@use ' ./elevation' ;
22@use ' ../theming/inspection' ;
3+ @use ' ../tokens/m2-utils' ;
4+ @use ' ../tokens/m3-utils' ;
5+ @use ' sass:map' ;
36
47@mixin private-theme-elevation ($zValue , $theme ) {
5- $elevation-color : inspection .get-theme-color ($theme , foreground , elevation );
6- $elevation-color-or-default : if ($elevation-color == null , elevation .$color , $elevation-color );
7-
8- @include elevation .elevation ($zValue , $elevation-color-or-default );
8+ $system : m2-utils .get-system ($theme );
9+ @include elevation .elevation ($zValue , map .get ($system , shadow ));
910}
1011
1112@mixin private-theme-overridable-elevation ($zValue , $theme ) {
12- $elevation-color : inspection .get-theme-color ($theme , foreground , elevation );
13- $elevation-color-or-default : if ($elevation-color == null , elevation .$color , $elevation-color );
14-
15- @include elevation .overridable-elevation ($zValue , $elevation-color-or-default );
13+ $system : m2-utils .get-system ($theme );
14+ @include elevation .overridable-elevation ($zValue , map .get ($system , shadow ));
1615}
1716
1817// If the mat-animation-noop class is present on the components root element,
You can’t perform that action at this time.
0 commit comments