Skip to content

Commit

Permalink
update settingsLinkTextUrl param name
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed May 22, 2024
1 parent f8b561c commit 92851a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/cookies-banner/_macro-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
2 changes: 1 addition & 1 deletion src/components/cookies-banner/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
2 changes: 1 addition & 1 deletion src/components/cookies-banner/_macro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 92851a0

Please sign in to comment.