fix(checkbox): ripple not hiding after click/touch (#13295)

* Currently if someone toggles the slide-toggle through mouse interaction, the persistent ripple will show up besides one transient ripple. The persistent ripple should only show up if the native checkbox element was focused through keyboard.

Fixes #13291
This commit is contained in:
Paul Gschwendtner
2018-10-04 19:06:59 +02:00
committed by vivian-hu
parent 3583913583
commit afb035232d
+1 -1
View File
@@ -266,7 +266,7 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
opacity: 0.04;
}
.mat-checkbox.cdk-focused & {
.mat-checkbox.cdk-keyboard-focused & {
opacity: 0.12;
}