@@ -20,26 +20,31 @@ $prefix: (mat, menu);
2020 item- with- icon- leading- spacing: 16px ,
2121 item- with- icon- trailing- spacing: 16px ,
2222 container- elevation- shadow: elevation .get-box-shadow (8 ),
23-
2423 // Unused
25- base- elevation- level: null,
24+ base- elevation- level: null
2625 );
2726}
2827
2928// Tokens that can be configured through Angular Material's color theming API.
3029@function get-color-tokens ($theme ) {
3130 $is-dark : inspection .get-theme-type ($theme ) == dark ;
32- $active-state-layer-color : inspection .get-theme-color ($theme , foreground , base ,
33- if ($is-dark , 0.08 , 0.04 ));
31+ $active-state-layer-color : inspection .get-theme-color (
32+ $theme ,
33+ foreground ,
34+ base ,
35+ if ($is-dark , 0.08 , 0.04 )
36+ );
37+ $disabled-background : inspection .get-theme-color ($theme , foreground , disabled-button );
3438 $text-color : inspection .get-theme-color ($theme , foreground , text );
3539
3640 @return (
3741 item- label- text- color: $text-color ,
3842 item- icon- color: $text-color ,
3943 item- hover- state- layer- color: $active-state-layer-color ,
44+ item- disabled- hover- state- layer- color: $disabled-background ,
4045 item- focus- state- layer- color: $active-state-layer-color ,
4146 container- color: inspection .get-theme-color ($theme , background , card ),
42- divider- color: inspection .get-theme-color ($theme , foreground , divider ),
47+ divider- color: inspection .get-theme-color ($theme , foreground , divider )
4348 );
4449}
4550
@@ -50,7 +55,7 @@ $prefix: (mat, menu);
5055 item- label- text- size: inspection .get-theme-typography ($theme , body-1 , font-size ),
5156 item- label- text- tracking: inspection .get-theme-typography ($theme , body-1 , letter-spacing ),
5257 item- label- text- line- height: inspection .get-theme-typography ($theme , body-1 , line-height ),
53- item- label- text- weight: inspection .get-theme-typography ($theme , body-1 , font-weight ),
58+ item- label- text- weight: inspection .get-theme-typography ($theme , body-1 , font-weight )
5459 );
5560}
5661
@@ -63,9 +68,9 @@ $prefix: (mat, menu);
6368// This is used to create token slots.
6469@function get-token-slots () {
6570 @return sass-utils .deep-merge-all (
66- get-unthemable-tokens (),
67- get-color-tokens (m2-utils .$placeholder-color-config ),
68- get-typography-tokens (m2-utils .$placeholder-typography-config ),
69- get-density-tokens (m2-utils .$placeholder-density-config )
71+ get-unthemable-tokens (),
72+ get-color-tokens (m2-utils .$placeholder-color-config ),
73+ get-typography-tokens (m2-utils .$placeholder-typography-config ),
74+ get-density-tokens (m2-utils .$placeholder-density-config )
7075 );
7176}
0 commit comments