From 82265a81e431c85dfe115a596a71ef99a35b5da4 Mon Sep 17 00:00:00 2001
From: rmccar <42928680+rmccar@users.noreply.github.com>
Date: Thu, 19 Sep 2024 16:05:00 +0100
Subject: [PATCH] Remove space from button newWindowDescription (#3363)
---
src/components/button/_macro.njk | 2 +-
src/components/button/_macro.spec.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
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"', () => {