From f8fc17dc421b6f4a1638992a18d36c8f947c4e08 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Fri, 28 Aug 2015 15:26:06 -0500 Subject: [PATCH] animate with fill mode 'both' --- ionic/animations/animation.ts | 3 ++- ionic/components/icon/icon.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ionic/animations/animation.ts b/ionic/animations/animation.ts index 79c1b85b04..e3a040b8da 100644 --- a/ionic/animations/animation.ts +++ b/ionic/animations/animation.ts @@ -482,7 +482,8 @@ class Animate { self.player = self.ele.animate(self.effects, { duration: self.duration || 0, easing: self.easing, - playbackRate: self.rate || 1 + playbackRate: self.rate || 1, + fill: 'both' }); self.player.onfinish = () => { diff --git a/ionic/components/icon/icon.ts b/ionic/components/icon/icon.ts index d24dd8533c..b7d1370d04 100644 --- a/ionic/components/icon/icon.ts +++ b/ionic/components/icon/icon.ts @@ -84,7 +84,7 @@ export class Icon { if (!this.ariaHidden) { // the icon is either not within a button // or the icon is within a button, and its an icon only button - this.label = this.name.replace('ion-', '').replace('ios-', '').replace('md-', '').replace('-', ''); + this.label = this.name.replace('ion-', '').replace('ios-', '').replace('md-', '').replace('-', ' '); } }