diff --git a/src/components/button/_macro.njk b/src/components/button/_macro.njk index 3dc20ecaf3..ba06e0abfc 100644 --- a/src/components/button/_macro.njk +++ b/src/components/button/_macro.njk @@ -111,7 +111,7 @@ {%- endif -%} {% if params.url and params.newWindow %} - ({{ params.newWindowDescription | default("opens in a new tab") }}) + ({{ params.newWindowDescription | default("opens in a new tab") }}) {% endif %} {% if params.buttonContext %} {{ params.buttonContext }} diff --git a/src/components/button/_macro.spec.js b/src/components/button/_macro.spec.js index 19c2786ea3..b64c38240c 100644 --- a/src/components/button/_macro.spec.js +++ b/src/components/button/_macro.spec.js @@ -393,7 +393,7 @@ describe('macro: button', () => { }), ); - expect($('.ons-btn__new-window-description').text()).toBe(' (opens in a new tab)'); + expect($('.ons-btn__new-window-description').text()).toBe('(opens in a new tab)'); }); it('has a custom new window description when `newWindow` is `true` and `newWindowDescription` is provided', () => { @@ -405,7 +405,7 @@ describe('macro: button', () => { }), ); - expect($('.ons-btn__new-window-description').text()).toBe(' (custom opens in a new window text)'); + expect($('.ons-btn__new-window-description').text()).toBe('(custom opens in a new window text)'); }); it('has the `download` attribute when `variants` contains "download"', () => {