From a8b2dd32ddc145f3054f1072f87c1e60a1abf7bf Mon Sep 17 00:00:00 2001 From: Matthias Manoukian Date: Fri, 20 Sep 2019 09:38:19 +0200 Subject: [PATCH] fix(button): correctly check default emphasis --- modules/button/js/button_directive.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/button/js/button_directive.js b/modules/button/js/button_directive.js index e9536dc4a..9b652944f 100644 --- a/modules/button/js/button_directive.js +++ b/modules/button/js/button_directive.js @@ -81,7 +81,11 @@ function ButtonDirective() { } } - const isDefaultEmphasis = !attrs.lxEmphasis || attrs.lxEmphasis === 'high'; + const isDefaultEmphasis = + (!attrs.lxType && !attrs.lxEmphasis) || + attrs.lxEmphasis === 'high' || + attrs.lxType === 'raised' || + attrs.lxType === 'fab'; const defaultProps = { color: isDefaultEmphasis ? 'primary' : 'dark',