@@ -47,14 +47,7 @@ $prefix: (mat, button);
47
47
// Tokens that can be configured through Angular Material's color theming API.
48
48
@function get-color-tokens ($theme ) {
49
49
$is-dark : inspection .get-theme-type ($theme ) == dark ;
50
-
51
- // Ideally we would derive all values directly from the theme, but it causes a lot of regressions
52
- // internally. For now we fall back to the old hardcoded behavior only for internal apps.
53
- $outline : if (m2-utils .$private-is-internal-build ,
54
- rgba (if ($is-dark , #fff , #000 ), 0.12 ),
55
- inspection .get-theme-color ($theme , foreground , divider )
56
- );
57
-
50
+ $outline : inspection .get-theme-color ($theme , foreground , divider );
58
51
@return (
59
52
filled- container- color: inspection .get-theme-color ($theme , background , card ),
60
53
filled- disabled- container- color:
@@ -125,19 +118,6 @@ $prefix: (mat, button);
125
118
$label-text-color : inspection .get-theme-color ($theme , $palette-name , default-contrast , 1 );
126
119
$ripple-opacity : 0.1 ;
127
120
128
- // Ideally we would derive all values directly from the theme, but it causes a lot of regressions
129
- // internally. For now we fall back to the old hardcoded behavior only for internal apps.
130
- @if (m2-utils .$private-is-internal-build or
131
- meta .type-of ($contrast-color ) != ' color' ) {
132
- $is-dark : inspection .get-theme-type ($theme ) == dark ;
133
- $container-color : inspection .get-theme-color ($theme , $palette-name );
134
- $contrast-tone : m2-utils .contrast-tone ($container-color , $is-dark );
135
- $color : if ($contrast-tone == ' dark' , #000 , #fff );
136
- $state-layer-color : $color ;
137
- $ripple-color : rgba ($color , 0.1 );
138
- $label-text-color : if ($contrast-tone == ' dark' , #000 , #fff );
139
- }
140
-
141
121
// outlined-outline-color:
142
122
// TODO: we shouldn't have to set this since it's the same as the non-palette version, however
143
123
// there are a bunch of tests internally that depend on it. We should remove this and clean
0 commit comments