From afb035232def67387a80852772ffeab7e858ffb0 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 4 Oct 2018 19:06:59 +0200 Subject: [PATCH] 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 --- src/lib/checkbox/checkbox.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/checkbox/checkbox.scss b/src/lib/checkbox/checkbox.scss index bc37ff2d669..b1cb567b186 100644 --- a/src/lib/checkbox/checkbox.scss +++ b/src/lib/checkbox/checkbox.scss @@ -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; }