From 8a8bedb43c256bf8d62522245423255e66304575 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 20 Feb 2017 18:42:57 +0100 Subject: [PATCH] fix(checkbox): create ripple on label mousedown * Now triggers the ripple on label mousedown (similar as to slide-toggle and radio) * Only sets cursor for underlying `label` element (similar as for native checkbox inputs) * Adds a test that confirms that ripples work for checkbox Fixes #3030 --- src/lib/checkbox/checkbox.html | 4 +- src/lib/checkbox/checkbox.scss | 5 ++- src/lib/checkbox/checkbox.spec.ts | 75 ++++++++++++++++++++----------- src/lib/checkbox/checkbox.ts | 3 -- 4 files changed, 54 insertions(+), 33 deletions(-) diff --git a/src/lib/checkbox/checkbox.html b/src/lib/checkbox/checkbox.html index d9dc0a5a2120..185e28b16ea9 100644 --- a/src/lib/checkbox/checkbox.html +++ b/src/lib/checkbox/checkbox.html @@ -1,4 +1,4 @@ -