File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/material-experimental/mdc-radio Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
@import ' ../mdc-helpers/mdc-helpers' ;
2
2
@import ' @material/radio/mixins' ;
3
3
@import ' @material/radio/variables' ;
4
+ @import ' @material/theme/functions.import' ;
4
5
5
6
@mixin mat-mdc-radio-theme ($theme ) {
6
7
// Save original values of MDC global variables. We need to save these so we can restore the
7
8
// variables to their original values and prevent unintended side effects from using this mixin.
8
9
$orig-mdc-radio-baseline-theme-color : $mdc-radio-baseline-theme-color ;
10
+ $orig-mdc-radio-unchecked-color : $mdc-radio-unchecked-color ;
11
+ $orig-mdc-radio-disabled-circle-color : $mdc-radio-disabled-circle-color ;
9
12
10
13
@include mat-using-mdc-theme ($theme ) {
11
14
$mdc-radio-baseline-theme-color : primary !global;
15
+ $mdc-radio-unchecked-color : rgba (mdc-theme-prop-value (on-surface ), 0.54 ) !global;
16
+ $mdc-radio-disabled-circle-color : rgba (mdc-theme-prop-value (on-surface ), 0.38 ) !global;
12
17
13
18
.mat-mdc-radio-button {
14
19
& .mat-primary {
29
34
30
35
// Restore original values of MDC global variables.
31
36
$mdc-radio-baseline-theme-color : $orig-mdc-radio-baseline-theme-color !global;
37
+ $mdc-radio-unchecked-color : $orig-mdc-radio-unchecked-color !global;
38
+ $mdc-radio-disabled-circle-color : $orig-mdc-radio-disabled-circle-color !global;
32
39
}
33
40
34
41
@mixin mat-mdc-radio-typography ($config ) {
You can’t perform that action at this time.
0 commit comments