From 21e9d727b474ea98380a39147a231d1033c20884 Mon Sep 17 00:00:00 2001 From: Richard McCarthy Date: Fri, 24 May 2024 21:50:29 +0100 Subject: [PATCH 001/104] add formatting for nunjucks files --- .prettierrc.yml | 10 +- src/components/access-code/_macro-options.md | 2 +- src/components/access-code/_macro.njk | 60 +- .../access-code/example-access-code-error.njk | 86 +- .../access-code/example-access-code.njk | 70 +- src/components/accordion/_macro.njk | 13 +- .../accordion/example-accordion-open.njk | 1 - src/components/address-input/_macro.njk | 34 +- .../example-address-input-editable.njk | 102 +-- .../example-address-input-manual.njk | 44 +- .../address-input/example-address-input.njk | 78 +- src/components/address-output/_macro.njk | 12 +- src/components/autosuggest/_macro.njk | 94 ++- .../example-autosuggest-country-multiple.njk | 52 +- .../example-autosuggest-country.njk | 48 +- .../back-to-top/example-back-to-top.njk | 189 ++++- .../example-full-page-back-to-top.njk | 258 +++--- src/components/breadcrumbs/_macro.njk | 15 +- src/components/browser-banner/_macro.njk | 9 +- src/components/button/_macro.njk | 10 +- .../button/example-button-ghost.njk | 1 + src/components/call-to-action/_macro.njk | 12 +- .../example-call-to-action-default.njk | 5 +- src/components/card/_macro.njk | 32 +- .../card/example-card-set-with-images.njk | 58 +- .../card/example-card-set-with-lists.njk | 112 +-- src/components/card/example-card-set.njk | 52 +- src/components/card/example-card.njk | 16 +- src/components/char-check-limit/_macro.njk | 4 +- src/components/checkboxes/_checkbox-macro.njk | 34 +- src/components/checkboxes/_macro.njk | 151 ++-- .../example-checkboxes-disabled.njk | 60 +- .../checkboxes/example-checkboxes-error.njk | 1 - .../example-checkboxes-with-descriptions.njk | 12 +- .../example-checkboxes-with-hidden-label.njk | 332 ++++---- ...oxes-with-revealed-checkboxes-expanded.njk | 162 ++-- ...le-checkboxes-with-revealed-checkboxes.njk | 158 ++-- ...eckboxes-with-revealed-select-expanded.njk | 12 +- ...xample-checkboxes-with-revealed-select.njk | 12 +- ...oxes-with-revealed-text-input-expanded.njk | 12 +- ...le-checkboxes-with-revealed-text-input.njk | 12 +- ...mple-checkboxes-with-select-all-button.njk | 12 +- ...ple-checkboxes-with-visible-text-input.njk | 12 +- .../checkboxes/example-checkboxes.njk | 12 +- src/components/content-pagination/_macro.njk | 66 +- .../example-content-pagination.njk | 34 +- src/components/cookies-banner/_macro.njk | 25 +- .../example-cookies-banner-cymraeg.njk | 3 +- .../cookies-banner/example-cookies-banner.njk | 7 +- src/components/date-input/_macro.njk | 132 +-- ...mple-date-input-error-for-single-field.njk | 1 - .../date-input/example-date-input-error.njk | 1 - src/components/description-list/_macro.njk | 31 +- src/components/details/_macro.njk | 26 +- .../details/example-details-with-warning.njk | 25 +- src/components/document-list/_macro.njk | 173 ++-- ...example-document-list-article-featured.njk | 52 +- .../example-document-list-articles.njk | 108 +-- .../example-document-list-downloads.njk | 96 +-- ...e-document-list-search-result-featured.njk | 36 +- .../example-document-list-search-results.njk | 118 +-- src/components/duration/_macro.njk | 114 +-- ...xample-duration-error-for-single-field.njk | 54 +- .../example-duration-single-field.njk | 42 +- src/components/duration/example-duration.njk | 62 +- src/components/error/_macro.njk | 14 +- src/components/external-link/_macro.njk | 17 +- .../external-link/example-external-link.njk | 15 +- src/components/feedback/_macro.njk | 4 +- src/components/field/_macro.njk | 4 +- src/components/fieldset/_macro.njk | 4 +- src/components/footer/_macro.njk | 49 +- .../footer/example-footer-cymraeg.njk | 3 +- .../footer/example-footer-default.njk | 7 +- .../footer/example-footer-transactional.njk | 3 +- .../footer/example-footer-warning.njk | 3 +- ...e-footer-with-alternative-organisation.njk | 3 +- .../example-footer-with-coat-of-arms.njk | 3 +- .../footer/example-footer-with-copyright.njk | 3 +- src/components/footer/example-footer.njk | 3 +- src/components/header/_macro.njk | 224 ++--- .../header/example-header-default.njk | 3 +- ...r-external-for-survey-with-description.njk | 3 +- .../example-header-external-for-surveys.njk | 3 +- .../header/example-header-external-welsh.njk | 6 +- ...er-external-with-navigation-and-search.njk | 3 +- ...xample-header-external-with-navigation.njk | 3 +- ...ple-header-external-with-service-links.njk | 3 +- ...r-external-with-sub-navigation-removed.njk | 3 +- ...le-header-external-with-sub-navigation.njk | 5 +- .../header/example-header-internal.njk | 3 +- .../header/example-header-multiple-logos.njk | 3 +- ...-header-neutral-for-multicoloured-logo.njk | 3 +- src/components/helpers/grid.njk | 31 +- src/components/hero/_macro.njk | 15 +- src/components/hero/example-hero-dark.njk | 3 +- src/components/hero/example-hero-default.njk | 3 +- src/components/icon/_macro.njk | 769 ++++++++++++++---- src/components/image/_macro.njk | 12 +- src/components/input/_macro.njk | 23 +- ...mple-input-search-with-character-check.njk | 2 +- .../example-input-search-with-placeholder.njk | 2 +- src/components/input/example-input-search.njk | 2 +- src/components/label/_macro.njk | 20 +- .../language-selector/_macro-options.md | 18 +- src/components/language-selector/_macro.njk | 13 +- src/components/list/_macro.njk | 95 ++- src/components/message-list/_macro.njk | 46 +- src/components/message/_macro-options.md | 2 +- src/components/modal/_macro.njk | 23 +- .../multiple-input-fields/_macro.njk | 58 +- src/components/mutually-exclusive/_macro.njk | 33 +- .../example-mutually-exclusive-checkboxes.njk | 10 +- .../example-mutually-exclusive-date.njk | 12 +- .../example-mutually-exclusive-duration.njk | 84 +- .../example-mutually-exclusive-email.njk | 12 +- ...le-mutually-exclusive-multiple-options.njk | 10 +- .../example-mutually-exclusive-number.njk | 10 +- .../example-mutually-exclusive-textarea.njk | 10 +- src/components/navigation/_macro.njk | 198 +++-- src/components/pagination/_macro.njk | 60 +- src/components/panel/_macro.njk | 18 +- src/components/panel/example-panel-bare.njk | 10 +- .../panel/example-panel-with-announcement.njk | 11 +- .../example-panel-with-error-summary.njk | 10 +- .../panel/example-panel-with-warning.njk | 8 +- src/components/password/_macro.njk | 12 +- src/components/phase-banner/_macro.njk | 6 +- .../example-phase-banner-alpha.njk | 3 +- .../example-phase-banner-beta.njk | 7 +- src/components/question/_macro.njk | 110 +-- .../question/example-question-ccs.njk | 75 +- .../question/example-question-fieldset.njk | 164 ++-- .../example-question-interviewer-note.njk | 51 +- .../question/example-question-no-fieldset.njk | 72 +- src/components/quote/_macro.njk | 4 +- src/components/radios/_macro.njk | 84 +- ...mple-radios-with-clear-button-expanded.njk | 10 +- .../example-radios-with-clear-button.njk | 10 +- .../example-radios-with-descriptions.njk | 12 +- ...e-radios-with-revealed-select-expanded.njk | 10 +- .../example-radios-with-revealed-select.njk | 10 +- ...adios-with-revealed-text-area-expanded.njk | 12 +- ...example-radios-with-revealed-text-area.njk | 12 +- ...dios-with-revealed-text-input-expanded.njk | 12 +- ...xample-radios-with-revealed-text-input.njk | 12 +- .../radios/example-radios-with-separator.njk | 10 +- ...example-radios-with-visible-text-input.njk | 12 +- .../radios/example-radios-without-border.njk | 1 - src/components/radios/example-radios.njk | 12 +- src/components/related-content/_macro.njk | 11 +- .../related-content/_section-macro.njk | 14 +- .../example-related-content-general.njk | 8 +- ...related-content-multiple-rows-of-links.njk | 100 +-- .../example-related-content-social-media.njk | 78 +- src/components/relationships/_macro.njk | 18 +- .../example-relationships-error.njk | 344 ++++---- .../example-relationships-you.njk | 332 ++++---- .../relationships/example-relationships.njk | 328 ++++---- src/components/section-navigation/_macro.njk | 15 +- src/components/select/_macro.njk | 39 +- src/components/share-page/_macro.njk | 12 +- src/components/skip-to-content/_macro.njk | 2 +- .../example-skip-to-content.njk | 1 + src/components/status/_macro.njk | 2 +- src/components/summary/_macro.njk | 64 +- .../example-summary-household-no-rows.njk | 34 +- .../summary/example-summary-household.njk | 148 ++-- .../summary/example-summary-hub-minimal.njk | 146 ++-- .../summary/example-summary-hub.njk | 336 ++++---- src/components/table-of-contents/_macro.njk | 66 +- .../example-table-of-contents-grouped.njk | 2 +- .../example-table-of-contents-single.njk | 2 +- ...ple-table-of-contents-sticky-full-page.njk | 117 ++- .../example-table-of-contents-sticky.njk | 63 +- src/components/table/_macro.njk | 115 ++- src/components/tabs/_macro.njk | 19 +- src/components/tabs/example-tabs-details.njk | 7 +- src/components/text-indent/_macro.njk | 4 +- src/components/textarea/_macro.njk | 97 ++- src/components/timeline/_macro.njk | 8 +- src/components/timeout-modal/_macro.njk | 40 +- .../timeout-modal/example-timeout-modal.njk | 30 +- src/components/timeout-panel/_macro.njk | 36 +- .../example-panel-with-timeout-warning.njk | 24 +- src/components/upload/_macro.njk | 36 +- src/components/video/_macro.njk | 18 +- src/foundations/grid/example-grid-12.njk | 1 + src/foundations/grid/example-grid-7-4.njk | 1 + src/foundations/grid/example-grid-8.njk | 1 + src/foundations/grid/example-grid-combo.njk | 1 + .../headings/example-breakpoint-headings.njk | 7 +- .../example-default-heading-sizes.njk | 3 +- .../highlighting/example-highlighting.njk | 3 +- src/foundations/links/example-link.njk | 3 +- src/foundations/lists/example-bare-list.njk | 2 +- ...example-base-page-template-block-areas.njk | 1 - .../page-template/example-basic.njk | 15 +- .../page-template/example-custom.njk | 122 +-- .../paragraphs/example-paragraphs.njk | 17 +- src/foundations/quote/example-quote.njk | 2 +- .../text-indent/example-text-indent.njk | 2 +- .../type-scale/example-type-scale.njk | 157 ++-- src/layout/_dsTemplate.njk | 42 +- src/layout/_template.njk | 14 +- .../example-address-input-manual-error.njk | 106 +-- .../example-address-input-manual.njk | 76 +- ...ess-input-non-editable-confirm-address.njk | 15 +- ...ss-input-non-editable-register-address.njk | 14 +- .../example-address-input-non-editable.njk | 116 +-- .../addresses/example-address-input.njk | 134 +-- .../example-change-language-cymraeg.njk | 77 +- .../example-change-language-english.njk | 69 +- .../example-confirmation-page.njk | 31 +- .../example-cookie-settings-page.njk | 326 ++++---- .../correct-errors/example-error-summary.njk | 10 +- .../example-errors-proto-errors.njk | 24 +- .../correct-errors/example-errors-proto.njk | 25 +- .../example-download-resources.njk | 471 ++++++----- .../example-access-denied-error.njk | 17 +- .../example-browser-incompatible-error.njk | 17 +- .../example-maintenance-notice.njk | 19 +- ...example-page-not-found-error-with-code.njk | 23 +- .../example-page-not-found-error.njk | 15 +- .../example-server-error.njk | 17 +- .../example-timed-out-error-not-signed-in.njk | 20 +- .../example-timed-out-error.njk | 20 +- .../extend-session/example-timeout.njk | 139 ++-- .../feedback/example-feedback-form-errors.njk | 61 +- .../feedback/example-feedback-form.njk | 44 +- .../feedback/example-feedback-success.njk | 20 +- src/patterns/guide/example-guide-overview.njk | 95 ++- src/patterns/guide/example-guide-rtl.njk | 200 +++-- src/patterns/guide/example-guide.njk | 86 +- .../hub-and-spoke/example-hub-complete.njk | 297 +++---- src/patterns/hub-and-spoke/example-hub.njk | 283 +++---- .../hub-and-spoke/example-spoke-continue.njk | 59 +- .../hub-and-spoke/example-spoke-start.njk | 42 +- .../hub-and-spoke/example-spoke-summary.njk | 35 +- .../example-name-multiple-input-field.njk | 12 +- .../names/example-name-single-input-field.njk | 12 +- src/patterns/news/example-article.njk | 316 +++---- src/patterns/news/example-category.njk | 519 ++++++------ src/patterns/news/example-landing.njk | 403 +++++---- src/patterns/news/example-tag.njk | 283 ++++--- .../question/example-question-anatomy.njk | 117 +-- .../example-save-and-sign-out-button.njk | 91 ++- .../save-and-sign-out/example-signed-out.njk | 78 +- .../send-a-web-form/example-errors.njk | 250 +++--- src/patterns/send-a-web-form/example-form.njk | 208 ++--- .../send-a-web-form/example-success.njk | 18 +- .../example-conversation.njk | 12 +- .../example-survey-interstitial-page.njk | 55 +- ...ample-survey-section-introduction-page.njk | 52 +- src/scss/helpers/_mq.scss | 38 +- 255 files changed, 8398 insertions(+), 6614 deletions(-) diff --git a/.prettierrc.yml b/.prettierrc.yml index f105a4a8b1..f79c105d2f 100644 --- a/.prettierrc.yml +++ b/.prettierrc.yml @@ -1,3 +1,7 @@ -singleQuote: true -printWidth: 140 -trailingComma: all +{ + 'plugins': ['prettier-plugin-jinja-template'], + 'singleQuote': true, + 'printWidth': 140, + 'trailingComma': all, + 'overrides': [{ 'files': ['*.html', '*.njk'], 'options': { 'parser': 'jinja-template' } }], +} diff --git a/src/components/access-code/_macro-options.md b/src/components/access-code/_macro-options.md index 8249284e55..2bc9d626ce 100644 --- a/src/components/access-code/_macro-options.md +++ b/src/components/access-code/_macro-options.md @@ -5,7 +5,7 @@ | label | `Label` [_(ref)_](/components/label) | true | Settings for the input label | | type | string | false | Sets the `type` attribute on the access code [input](/components/input). Defaults to `text` | | name | string | false | Sets the `name` attribute for the access code input | -| maxlength | integer | false | Maximum length for the access code not including spaces. Defaults to 16. | +| maxLength | integer | false | Maximum length for the access code not including spaces. Defaults to 16. | | groupSize | integer | false | Number of characters or digits before a space is automatically added. Defaults to 4. | | securityMessage | string | false | The security message to place below the input. If not set, the message and icon will not be displayed. | | postTextboxLinkText | string | false | The text for the link following the access code input | diff --git a/src/components/access-code/_macro.njk b/src/components/access-code/_macro.njk index 0f9f0c92f3..641f1b3c18 100644 --- a/src/components/access-code/_macro.njk +++ b/src/components/access-code/_macro.njk @@ -3,33 +3,37 @@ {% macro onsAccessCode(params) %} {% set groupSize = params.groupSize | default(4) %} - {% set extraSpaces = (params.maxlength | default(16) / groupSize) - 1 %} - {% set maxlength = params.maxlength | default(16) + extraSpaces %} + {% set extraSpaces = (params.maxLength | default(16) / groupSize) - 1 %} + {% set maxLength = params.maxLength | default(16) + extraSpaces %} {% set content %} - {{ onsInput({ - "id": params.id, - "type": params.type, - "name": params.name, - "classes": "ons-access-code__input ons-js-access-code" + (" ons-u-mb-xs" if params.postTextboxLinkText else ""), - "label": params.label, - "attributes": { - "maxlength": maxlength, - "data-group-size": groupSize, - "autocomplete": "off", - "autocapitalize": "characters" - }, - "fieldClasses": "ons-question__answer", - "error": params.error, - "postTextboxLinkText": params.postTextboxLinkText, - "postTextboxLinkUrl": params.postTextboxLinkUrl - }) }} + {{ + onsInput({ + "id": params.id, + "type": params.type, + "name": params.name, + "classes": "ons-access-code__input ons-js-access-code" + (" ons-u-mb-xs" if params.postTextboxLinkText else ""), + "label": params.label, + "attributes": { + "maxlength": maxLength, + "data-group-size": groupSize, + "autocomplete": "off", + "autocapitalize": "characters" + }, + "fieldClasses": "ons-question__answer", + "error": params.error, + "postTextboxLinkText": params.postTextboxLinkText, + "postTextboxLinkUrl": params.postTextboxLinkUrl + }) + }} {% endset %} {% if not params.error %} - {% call onsPanel({ - "classes": "ons-u-mb-s" + (' ' + params.classes if params.classes else '') - }) %} + {% + call onsPanel({ + "classes": "ons-u-mb-s" + (' ' + params.classes if params.classes else '') + }) + %} {{ content | safe }} {% endcall %} {% else %} @@ -37,11 +41,13 @@ {% endif %} {% if params.securityMessage %} - {% call onsPanel({ - "variant": "bare", - "iconType": "lock", - "classes": "ons-u-mb-s" - }) %} + {% + call onsPanel({ + "variant": "bare", + "iconType": "lock", + "classes": "ons-u-mb-s" + }) + %} {{ params.securityMessage }} {% endcall %} {% endif %} diff --git a/src/components/access-code/example-access-code-error.njk b/src/components/access-code/example-access-code-error.njk index 350d76c67e..52a904278a 100644 --- a/src/components/access-code/example-access-code-error.njk +++ b/src/components/access-code/example-access-code-error.njk @@ -1,22 +1,26 @@ --- -title: "Example: Access code error" +title: 'Example: Access code error' layout: ~ --- + {% extends "layout/_template.njk" %} {% from "components/access-code/_macro.njk" import onsAccessCode %} {% from "components/button/_macro.njk" import onsButton %} {% from "components/panel/_macro.njk" import onsPanel %} {% from "components/details/_macro.njk" import onsDetails %} - -{% set pageConfig = { - "title": "Study title" -} %} +{% + set pageConfig = { + "title": "Study title" + } +%} {% block main %} - {% call onsPanel({ - "title": "There is a problem with this page", - "variant": "error" - }) %} + {% + call onsPanel({ + "title": "There is a problem with this page", + "variant": "error" + }) + %} {% from "components/list/_macro.njk" import onsList %} {{ onsList({ @@ -34,46 +38,54 @@ layout: ~

Start study

- {{ onsAccessCode({ - "id": "access-code", - "name": "access-code", - "postTextboxLinkText": "Where to find your access code", - "postTextboxLinkUrl": "#0", - "label": { - "text": "Enter your 16-character access code", - "description": "Keep this code safe. You will need to enter it every time you access your survey" - }, - "securityMessage": "Your personal information is protected by law and will be kept confidential", - "error": { - "id": "access-code-error", - "text": "Enter an access code" - } - }) }} + {{ + onsAccessCode({ + "id": "access-code", + "name": "access-code", + "postTextboxLinkText": "Where to find your access code", + "postTextboxLinkUrl": "#0", + "label": { + "text": "Enter your 16-character access code", + "description": "Keep this code safe. You will need to enter it every time you access your survey" + }, + "securityMessage": "Your personal information is protected by law and will be kept confidential", + "error": { + "id": "access-code-error", + "text": "Enter an access code" + } + }) + }} - {{ onsButton({ - "text": "Access study", - "classes": "ons-u-mb-xl" - }) }} + {{ + onsButton({ + "text": "Access study", + "classes": "ons-u-mb-xl" + }) + }}

If you do not have an access code

- If you have lost or not received an access code, you can request a new access code. - This can be sent to you by text or post. + If you have lost or not received an access code, you can request a new access code. This can be sent to you by text + or post.

{% set content %}

If you need to answer separately from the people you live with, you can request an individual access code.

- {% call onsPanel({ - "variant": "warn" - }) %} + {% + call onsPanel({ + "variant": "warn" + }) + %} Someone in your household must still complete a study using this household access code {% endcall %} {% endset %} - {% call onsDetails({ - "id": "details-access-code-error", - "title": "Need to answer separately from your household?" - }) %} + {% + call onsDetails({ + "id": "details-access-code-error", + "title": "Need to answer separately from your household?" + }) + %} {{ content | safe }} {% endcall %} {% endblock %} diff --git a/src/components/access-code/example-access-code.njk b/src/components/access-code/example-access-code.njk index f8cca16218..978fe640c1 100644 --- a/src/components/access-code/example-access-code.njk +++ b/src/components/access-code/example-access-code.njk @@ -1,58 +1,68 @@ --- -title: "Example: Access code" +title: 'Example: Access code' layout: ~ --- + {% extends "layout/_template.njk" %} {% from "components/access-code/_macro.njk" import onsAccessCode %} {% from "components/button/_macro.njk" import onsButton %} {% from "components/panel/_macro.njk" import onsPanel %} {% from "components/details/_macro.njk" import onsDetails %} - -{% set pageConfig = { - "header": { - "title": "Study title" +{% + set pageConfig = { + "header": { + "title": "Study title" + } } -} %} +%} {% block main %}

Start study

- {{ onsAccessCode({ - "id": "access-code-example", - "name": "access-code", - "postTextboxLinkText": "Where to find your access code", - "postTextboxLinkUrl": "#0", - "label": { - "text": "Enter your 16-character access code", - "description": "Keep this code safe. You will need to enter it every time you access your study" - }, - "securityMessage": "Your personal information is protected by law and will be kept confidential" - }) }} + {{ + onsAccessCode({ + "id": "access-code-example", + "name": "access-code", + "postTextboxLinkText": "Where to find your access code", + "postTextboxLinkUrl": "#0", + "label": { + "text": "Enter your 16-character access code", + "description": "Keep this code safe. You will need to enter it every time you access your study" + }, + "securityMessage": "Your personal information is protected by law and will be kept confidential" + }) + }} - {{ onsButton({ - "text": "Access study", - "classes": "ons-u-mb-xl" - }) }} + {{ + onsButton({ + "text": "Access study", + "classes": "ons-u-mb-xl" + }) + }}

If you do not have an access code

- If you have lost or not received an access code, you can request a new access code. - This can be sent to you by text or post. + If you have lost or not received an access code, you can request a new access code. This can be sent to you by text + or post.

{% set content %}

If you need to answer separately from the people you live with, you can request an individual access code.

- {% call onsPanel({ - "variant": "warn" - }) %} + {% + call onsPanel({ + "variant": "warn" + }) + %} Someone in your household must still complete a study using this household access code {% endcall %} {% endset %} - {% call onsDetails({ - "id": "details", - "title": "Need to answer separately from your household?" - }) %} + {% + call onsDetails({ + "id": "details", + "title": "Need to answer separately from your household?" + }) + %} {{ content | safe }} {% endcall %} {% endblock %} diff --git a/src/components/accordion/_macro.njk b/src/components/accordion/_macro.njk index 1282d63595..022e76f64c 100644 --- a/src/components/accordion/_macro.njk +++ b/src/components/accordion/_macro.njk @@ -1,15 +1,16 @@ {% macro onsAccordion(params) %} {% from "components/details/_macro.njk" import onsDetails %} -
+
{% if params.allButton %} {% from "components/button/_macro.njk" import onsButton %} {% set attributes = params.allButton.attributes | default({}) %} - - {% set attributes = attributes | setAttributes({ - "data-close-all": params.allButton.close, - "data-group": params.id - }) %} + {% + set attributes = attributes | setAttributes({ + "data-close-all": params.allButton.close, + "data-group": params.id + }) + %} {{ onsButton({ diff --git a/src/components/accordion/example-accordion-open.njk b/src/components/accordion/example-accordion-open.njk index 723940a13e..f814642b59 100644 --- a/src/components/accordion/example-accordion-open.njk +++ b/src/components/accordion/example-accordion-open.njk @@ -1,7 +1,6 @@ {% from "components/accordion/_macro.njk" import onsAccordion %} {% from "components/checkboxes/_macro.njk" import onsCheckboxes %} - {% set content1 %} {{ onsCheckboxes({ diff --git a/src/components/address-input/_macro.njk b/src/components/address-input/_macro.njk index cd4ce44d05..37f799709c 100644 --- a/src/components/address-input/_macro.njk +++ b/src/components/address-input/_macro.njk @@ -3,10 +3,13 @@ {% from "components/input/_macro.njk" import onsInput %} {% macro onsAddressInput(params) %} - {% set fields %} -