mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(checkbox): hover indication showing when disabled (#16159)
Fixes `mat-checkbox` showing its hover indication when it's disabled. It looks like the selector for the disabled state was misspelled. Fixes #16157.
This commit is contained in:
committed by
Jeremy Elbourn
parent
7a04788cd3
commit
60c9ebc374
@@ -293,7 +293,7 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
|
||||
// We do this here, rather than having a `:not(.mat-checkbox-disabled)`
|
||||
// above in the `:hover`, because the `:not` will bump the specificity
|
||||
// a lot and will cause it to overide the focus styles.
|
||||
&, .mat-checkbox.mat-disabled .mat-checkbox-inner-container:hover & {
|
||||
&, .mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover & {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user