From 34e76f5565b2d4408e21dd0281736269bca7ea7c Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Thu, 18 Jun 2020 10:44:56 -0400 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20Update=20link-button?= =?UTF-8?q?=20rose=20component=20tagName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/rose/addon/components/rose/link-button.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/addons/rose/addon/components/rose/link-button.js b/addons/rose/addon/components/rose/link-button.js index d5c12ed37..f2e283b63 100644 --- a/addons/rose/addon/components/rose/link-button.js +++ b/addons/rose/addon/components/rose/link-button.js @@ -13,7 +13,6 @@ import { computed } from '@ember/object'; */ export default LinkComponent.extend({ layout, - tagName: 'a', classNames: ['rose-link-button'], classNameBindings: [ 'linkButtonStyle', @@ -22,11 +21,6 @@ export default LinkComponent.extend({ 'iconRight:has-icon-right', ], linkButtonStyle: computed(function () { - let styleClassName = ''; - if (this.style) { - styleClassName = `rose-button-${this.style}`; - } - - return styleClassName; + return this.style ? `rose-button-${this.style}` : ''; }), });