@@ -18,6 +18,9 @@ $prefix: (mat, stepper);
18
18
19
19
// Tokens that can be configured through Angular Material's color theming API.
20
20
@function get-color-tokens ($theme ) {
21
+ $is-dark : inspection .get-theme-type ($theme ) == dark ;
22
+ $header-icon-foreground-color : if ($is-dark , black , white );
23
+
21
24
@return map .merge (private-get-color-palette-color-tokens ($theme , primary ), (
22
25
container- color: inspection .get-theme-color ($theme , background , card ),
23
26
line- color: inspection .get-theme-color ($theme , foreground , divider ),
@@ -29,6 +32,7 @@ $prefix: (mat, stepper);
29
32
header- selected- state- label- text- color: inspection .get-theme-color ($theme , foreground , text ),
30
33
header- error- state- label- text- color: inspection .get-theme-color ($theme , warn , text ),
31
34
header- icon- background- color: inspection .get-theme-color ($theme , foreground , secondary-text ),
35
+ header- icon- foreground- color: $header-icon-foreground-color ,
32
36
header- error- state- icon- foreground- color: inspection .get-theme-color ($theme , warn , text ),
33
37
header- error- state- icon- background- color: transparent ,
34
38
));
@@ -71,7 +75,6 @@ $prefix: (mat, stepper);
71
75
$active-state-background : inspection .get-theme-color ($theme , $palette-name );
72
76
73
77
@return (
74
- header- icon- foreground- color: $active-state-foreground ,
75
78
header- selected- state- icon- background- color: $active-state-background ,
76
79
header- selected- state- icon- foreground- color: $active-state-foreground ,
77
80
header- done- state- icon- background- color: $active-state-background ,
0 commit comments