From 898ac3e863aa758ca799919f0835d0c3ab2c7c7e Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 10 Nov 2016 20:39:27 -0500 Subject: [PATCH] fix(button) remove outline color class, then add back standard color class (#9114) fixes #9031 fixes #8845 --- src/components/button/button.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/button/button.ts b/src/components/button/button.ts index 5fcca91ad9d..63f15623343 100644 --- a/src/components/button/button.ts +++ b/src/components/button/button.ts @@ -229,7 +229,7 @@ export class Button extends Ion { /** @private */ _attr(type: string, attrName: string, attrValue: boolean) { if (type === '_style') { - this._updateColor(this._color, isTrueProperty(attrValue)); + this._updateColor(this._color, false); } this._setClass((this)[type], false); if (isTrueProperty(attrValue)) { @@ -241,6 +241,10 @@ export class Button extends Ion { (this)[type] = (type === '_style' ? 'default' : null); this._setClass((this)[type], true); } + if (type === '_style') { + this._updateColor(this._color, true); + } + } /** @@ -251,6 +255,7 @@ export class Button extends Ion { this._updateColor(this._color, false); this._updateColor(val, true); this._color = val; + } constructor(