Skip to content

Commit bd52ce0

Browse files
crisbetoandrewseguin
authored andcommitted
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.
1 parent 1597b08 commit bd52ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/checkbox/checkbox.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
293293
// We do this here, rather than having a `:not(.mat-checkbox-disabled)`
294294
// above in the `:hover`, because the `:not` will bump the specificity
295295
// a lot and will cause it to overide the focus styles.
296-
&, .mat-checkbox.mat-disabled .mat-checkbox-inner-container:hover & {
296+
&, .mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover & {
297297
opacity: 0;
298298
}
299299

0 commit comments

Comments
 (0)