From 60c9ebc374853c7b4f12daa1de2af7ca1ae4bad6 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 19 Jun 2019 19:26:48 +0200 Subject: [PATCH] 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. --- src/material/checkbox/checkbox.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material/checkbox/checkbox.scss b/src/material/checkbox/checkbox.scss index 87920b57379..208e27b5dce 100644 --- a/src/material/checkbox/checkbox.scss +++ b/src/material/checkbox/checkbox.scss @@ -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; }