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 19
19
);
20
20
21
21
@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 ));
25
23
$tokens : map .set ($tokens , ' app-elevation-shadow-level-#{$zValue } ' , $shadow );
26
24
}
27
25
Original file line number Diff line number Diff line change 134
134
hover- state- layer- opacity: 0.04 ,
135
135
focus- state- layer- opacity: 0.12 ,
136
136
pressed- state- layer- opacity: 0.12 ,
137
+ shadow : black ,
137
138
),
138
139
);
139
140
}
159
160
hover- state- layer- opacity: 0.04 ,
160
161
focus- state- layer- opacity: 0.12 ,
161
162
pressed- state- layer- opacity: 0.12 ,
163
+ shadow : black ,
162
164
),
163
165
);
164
166
}
Original file line number Diff line number Diff line change 1
1
@use ' ./elevation' ;
2
2
@use ' ../theming/inspection' ;
3
+ @use ' ../tokens/m2-utils' ;
4
+ @use ' ../tokens/m3-utils' ;
5
+ @use ' sass:map' ;
3
6
4
7
@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 ));
9
10
}
10
11
11
12
@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 ));
16
15
}
17
16
18
17
// 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