fix(slide-toggle): showing focus ripple when clicking disabled control (#14055)

Seems to be a regression from #13957. Since the focus monitor still tracks focus, even though the element is disabled, the focus ripple will show up when clicking on a disabled toggle.
This commit is contained in:
Kristiyan Kostadinov
2018-11-10 00:14:53 +00:00
committed by vivian-hu
parent ffe0c3e8a5
commit 9b05c3cfba
+1 -1
View File
@@ -204,7 +204,7 @@ $mat-slide-toggle-bar-track-width: $mat-slide-toggle-bar-width - $mat-slide-togg
opacity: 0.04;
}
.mat-slide-toggle.cdk-focused & {
.mat-slide-toggle:not(.mat-disabled).cdk-focused & {
opacity: 0.12;
}