From e4dd5d77a332a7bfb62cf64927d5aac739acbaaf Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 8 Feb 2018 22:38:55 +0100 Subject: [PATCH] update(radio, slide-toggle, checkbox): faster ripple enter animations (#9754) * Updates the slide-toggle, radio and checkbox ripples to have a quicker enter animation. This aligns more with the behavior MDC provides, and also feels more appropriate (for focus indicators) and is also more aligned with the specs. --- src/lib/checkbox/checkbox.html | 2 +- src/lib/radio/radio.html | 2 +- src/lib/slide-toggle/slide-toggle.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/checkbox/checkbox.html b/src/lib/checkbox/checkbox.html index 0a053348b45..9d108b2533e 100644 --- a/src/lib/checkbox/checkbox.html +++ b/src/lib/checkbox/checkbox.html @@ -21,7 +21,7 @@ [matRippleDisabled]="_isRippleDisabled()" [matRippleRadius]="25" [matRippleCentered]="true" - [matRippleAnimation]="{enterDuration: 300}"> + [matRippleAnimation]="{enterDuration: 150}">
diff --git a/src/lib/radio/radio.html b/src/lib/radio/radio.html index 7c1e0736174..533a3a0472f 100644 --- a/src/lib/radio/radio.html +++ b/src/lib/radio/radio.html @@ -10,7 +10,7 @@ [matRippleDisabled]="_isRippleDisabled()" [matRippleCentered]="true" [matRippleRadius]="23" - [matRippleAnimation]="{enterDuration: 300}"> + [matRippleAnimation]="{enterDuration: 150}">
diff --git a/src/lib/slide-toggle/slide-toggle.html b/src/lib/slide-toggle/slide-toggle.html index cdd7b5902d2..cadc284b979 100644 --- a/src/lib/slide-toggle/slide-toggle.html +++ b/src/lib/slide-toggle/slide-toggle.html @@ -27,7 +27,7 @@ [matRippleDisabled]="disableRipple || disabled" [matRippleCentered]="true" [matRippleRadius]="23" - [matRippleAnimation]="{enterDuration: 300}"> + [matRippleAnimation]="{enterDuration: 150}">