Skip to content

Commit afb0352

Browse files
devversionvivian-hu-zz
authored andcommitted
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
1 parent 3583913 commit afb0352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/checkbox/checkbox.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
266266
opacity: 0.04;
267267
}
268268

269-
.mat-checkbox.cdk-focused & {
269+
.mat-checkbox.cdk-keyboard-focused & {
270270
opacity: 0.12;
271271
}
272272

0 commit comments

Comments
 (0)