-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(radio): circle not being greyed out when disabled #12127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/lib/radio/_radio-theme.scss
Outdated
@@ -53,6 +39,22 @@ | |||
&.mat-warn { | |||
@include _mat-radio-color($warn); | |||
} | |||
|
|||
&.mat-radio-disabled { | |||
&.mat-radio-checked .mat-radio-outer-circle, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that just too make sure that the specificity is high enough? Since you already moved the code below it should be already enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not enough since the selector above is a combination of classes .mat-radio-button.mat-accent
which makes it higher. Ideally we wouldn't have this combination, but it would be a breaking change at this point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, can we add a short comment for it?
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 angular#12125.
de0700f
to
3b1280a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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.