Skip to content

Commit de0700f

Browse files
committed
fix(radio): circle not being greyed out when disabled
Fixes the radio button circle not being greyed out when it is disabled. It seems like we had the styles in place already, however they were with a lower specificity than the other theme styles. Fixes #12125.
1 parent a410865 commit de0700f

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

src/lib/radio/_radio-theme.scss

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,6 @@
2727
border-color: mat-color($foreground, secondary-text);
2828
}
2929

30-
.mat-radio-disabled .mat-radio-outer-circle {
31-
border-color: mat-color($foreground, disabled);
32-
}
33-
34-
.mat-radio-disabled {
35-
.mat-radio-ripple .mat-ripple-element, .mat-radio-inner-circle {
36-
background-color: mat-color($foreground, disabled);
37-
}
38-
39-
.mat-radio-label-content {
40-
color: mat-color($foreground, disabled);
41-
}
42-
}
43-
4430
.mat-radio-button {
4531
&.mat-primary {
4632
@include _mat-radio-color($primary);
@@ -53,6 +39,22 @@
5339
&.mat-warn {
5440
@include _mat-radio-color($warn);
5541
}
42+
43+
&.mat-radio-disabled {
44+
&.mat-radio-checked .mat-radio-outer-circle,
45+
.mat-radio-outer-circle {
46+
border-color: mat-color($foreground, disabled);
47+
}
48+
49+
.mat-radio-ripple .mat-ripple-element,
50+
.mat-radio-inner-circle {
51+
background-color: mat-color($foreground, disabled);
52+
}
53+
54+
.mat-radio-label-content {
55+
color: mat-color($foreground, disabled);
56+
}
57+
}
5658
}
5759
}
5860

0 commit comments

Comments
 (0)