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