File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
src/material-experimental Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 32
32
$primary : mat .get-color-from-palette (map .get ($config , primary ));
33
33
$accent : mat .get-color-from-palette (map .get ($config , accent ));
34
34
$warn : mat .get-color-from-palette (map .get ($config , warn ));
35
+ $foreground : map .get ($config , foreground );
35
36
36
37
@include mat .private-using-mdc-theme ($config ) {
37
38
.mat-mdc-checkbox {
64
65
@include _selected-ripple-colors ($warn , error);
65
66
}
66
67
}
68
+
69
+ .mat-mdc-checkbox-disabled label {
70
+ // MDC should set the disabled color on the label, but doesn't, so we do it here instead.
71
+ color : mat .get-color-from-palette ($foreground , disabled-text );
72
+ }
67
73
}
68
74
}
69
75
Original file line number Diff line number Diff line change 21
21
$primary : mat .get-color-from-palette (map .get ($config , primary ));
22
22
$accent : mat .get-color-from-palette (map .get ($config , accent ));
23
23
$warn : mat .get-color-from-palette (map .get ($config , warn ));
24
+ $foreground : map .get ($config , foreground );
24
25
25
26
@include mat .private-using-mdc-theme ($config ) {
26
27
$on-surface : rgba (mdc-theme-color .$on-surface , 0.54 );
46
47
47
48
--mat-mdc-radio-ripple-color : #{mdc-theme-color .prop-value (on-surface )} ;
48
49
50
+ // MDC should set the disabled color on the label, but doesn't, so we do it here instead.
51
+ .mdc-radio--disabled + label {
52
+ color : mat .get-color-from-palette ($foreground , disabled-text );
53
+ }
54
+
49
55
& .mat-primary {
50
56
@include _color-palette ($primary );
51
57
}
Original file line number Diff line number Diff line change 73
73
$accent : mat .get-color-from-palette (map .get ($config , accent ));
74
74
$warn : mat .get-color-from-palette (map .get ($config , warn ));
75
75
$is-dark : map .get ($config , is-dark );
76
+ $foreground : map .get ($config , foreground );
76
77
77
78
@include mat .private-using-mdc-theme ($config ) {
78
79
// MDC's switch doesn't support a `color` property. We add support
81
82
@include mdc-form-field .core-styles ($query : mat .$private-mdc-theme-styles-query );
82
83
@include mdc-switch-theme .theme (_get-theme-base-map ($is-dark ));
83
84
85
+ // MDC should set the disabled color on the label, but doesn't, so we do it here instead.
86
+ .mdc-switch--disabled + label {
87
+ color : mat .get-color-from-palette ($foreground , disabled-text );
88
+ }
89
+
84
90
& .mat-primary {
85
91
@include mdc-switch-theme .theme (_get-theme-color-map ($primary ));
86
92
}
You can’t perform that action at this time.
0 commit comments