@@ -20,26 +20,31 @@ $prefix: (mat, menu);
20
20
item- with- icon- leading- spacing: 16px ,
21
21
item- with- icon- trailing- spacing: 16px ,
22
22
container- elevation- shadow: elevation .get-box-shadow (8 ),
23
-
24
23
// Unused
25
- base- elevation- level: null,
24
+ base- elevation- level: null
26
25
);
27
26
}
28
27
29
28
// Tokens that can be configured through Angular Material's color theming API.
30
29
@function get-color-tokens ($theme ) {
31
30
$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 );
34
38
$text-color : inspection .get-theme-color ($theme , foreground , text );
35
39
36
40
@return (
37
41
item- label- text- color: $text-color ,
38
42
item- icon- color: $text-color ,
39
43
item- hover- state- layer- color: $active-state-layer-color ,
44
+ item- disabled- hover- state- layer- color: $disabled-background ,
40
45
item- focus- state- layer- color: $active-state-layer-color ,
41
46
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 )
43
48
);
44
49
}
45
50
@@ -50,7 +55,7 @@ $prefix: (mat, menu);
50
55
item- label- text- size: inspection .get-theme-typography ($theme , body-1 , font-size ),
51
56
item- label- text- tracking: inspection .get-theme-typography ($theme , body-1 , letter-spacing ),
52
57
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 )
54
59
);
55
60
}
56
61
@@ -63,9 +68,9 @@ $prefix: (mat, menu);
63
68
// This is used to create token slots.
64
69
@function get-token-slots () {
65
70
@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 )
70
75
);
71
76
}
0 commit comments