Skip to content

Commit

Permalink
fix(checkbox): ripple not hiding after click/touch (#13295)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
devversion authored and vivian-hu-zz committed Oct 4, 2018
1 parent 3583913 commit afb0352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/checkbox/checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit afb0352

Please sign in to comment.