From 92851a0468a2bad889858f63cc2c3eaa1fcd14c0 Mon Sep 17 00:00:00 2001 From: Richard McCarthy Date: Wed, 22 May 2024 12:06:23 +0100 Subject: [PATCH] update settingsLinkTextUrl param name --- src/components/cookies-banner/_macro-options.md | 2 +- src/components/cookies-banner/_macro.njk | 2 +- src/components/cookies-banner/_macro.spec.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/cookies-banner/_macro-options.md b/src/components/cookies-banner/_macro-options.md index c5d3dfe295..6854e76106 100644 --- a/src/components/cookies-banner/_macro-options.md +++ b/src/components/cookies-banner/_macro-options.md @@ -13,6 +13,6 @@ | confirmationButtonText | string | false | Text for the confirmation banner button (default is 'Hide') | | contextSuffix | string | false | Additional descriptive text for the confirmation banner button to assist screen readers (default is 'the cookie message') | | settingsLinkText | string | false | Text for link to cookie settings page (default is 'View cookies') | -| settingsLinkTextURL | string | false | URL for the cookies settings page (default is '/cookies') | +| settingsLinkTextUrl | string | false | URL for the cookies settings page (default is '/cookies') | | wide | boolean | false | Set to “true” to increase the maximum width of the layout container to 1280px | | fullWidth | boolean | false | Set to “true” to increase the maximum width of the layout container to the full width of the viewport | diff --git a/src/components/cookies-banner/_macro.njk b/src/components/cookies-banner/_macro.njk index 6ba4644a90..b289e90594 100644 --- a/src/components/cookies-banner/_macro.njk +++ b/src/components/cookies-banner/_macro.njk @@ -36,7 +36,7 @@ {% endif %} {% if not isDesignSystemExample %} - {% set settingsLinkURL = params.settingsLinkTextURL | default(defaultCookiesLink) %} + {% set settingsLinkURL = params.settingsLinkTextUrl | default(defaultCookiesLink) %} {% else %} {% set settingsLinkURL = '#0' %} {% endif %} diff --git a/src/components/cookies-banner/_macro.spec.js b/src/components/cookies-banner/_macro.spec.js index 2bfa65b3f5..f6a14008ab 100644 --- a/src/components/cookies-banner/_macro.spec.js +++ b/src/components/cookies-banner/_macro.spec.js @@ -10,7 +10,7 @@ const EXAMPLE_COOKIES_BANNER_PARAMS = { serviceName: 'ons.gov.uk override', statementTitle: 'Cookies on override', settingsLinkText: 'Cookie settings override', - settingsLinkTextURL: '/cookiesoverride', + settingsLinkTextUrl: '/cookiesoverride', statementText: 'Statement override', acceptButtonText: 'Accept additional cookies override', rejectButtonText: 'Reject additional cookies override',