From e4175701da23ebfa6593424606fc52d44b4575db Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 24 Sep 2018 18:08:47 +0200 Subject: [PATCH] fix(checkbox): ripple not hiding after click/touch * 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 bc37ff2d669c..b1cb567b1869 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; }