From b4bdeaa41b7965c83cd72822315a58de9978d00d Mon Sep 17 00:00:00 2001 From: Precious Onyenaucheya <86783201+precious-onyenaucheya-ons@users.noreply.github.com> Date: Mon, 14 Aug 2023 09:18:50 +0100 Subject: [PATCH] update example id to remove all duplicates (#2776) --- .../access-code/example-access-code-error.njk | 2 +- .../access-code/example-access-code.njk | 2 +- .../accordion/example-accordion-open.njk | 20 ++++----- .../accordion/example-accordion.njk | 2 +- .../example-address-input-editable.njk | 4 +- .../example-address-input-manual.njk | 6 +-- .../address-input/example-address-input.njk | 4 +- .../example-autosuggest-country-multiple.njk | 4 +- .../example-autosuggest-country.njk | 2 +- .../back-link/example-back-link.njk | 2 +- .../card/example-card-set-with-images.njk | 6 +-- .../card/example-card-set-with-lists.njk | 6 +-- src/components/card/example-card-set.njk | 6 +-- src/components/card/example-card.njk | 2 +- .../example-checkboxes-disabled.njk | 6 +-- .../checkboxes/example-checkboxes-error.njk | 14 +++---- .../example-checkboxes-with-descriptions.njk | 14 +++---- .../example-checkboxes-with-hidden-label.njk | 18 ++++---- ...oxes-with-revealed-checkboxes-expanded.njk | 16 +++---- ...le-checkboxes-with-revealed-checkboxes.njk | 16 +++---- ...eckboxes-with-revealed-radios-expanded.njk | 16 +++---- ...xample-checkboxes-with-revealed-radios.njk | 16 +++---- ...eckboxes-with-revealed-select-expanded.njk | 8 ++-- ...xample-checkboxes-with-revealed-select.njk | 8 ++-- ...oxes-with-revealed-text-input-expanded.njk | 12 +++--- ...le-checkboxes-with-revealed-text-input.njk | 12 +++--- ...mple-checkboxes-with-select-all-button.njk | 8 ++-- ...ple-checkboxes-with-visible-text-input.njk | 12 +++--- .../example-checkboxes-without-border.njk | 6 +-- .../checkboxes/example-checkboxes.njk | 8 ++-- .../date-input/example-date-input-error.njk | 4 +- .../date-input/example-date-input.njk | 2 +- .../details/example-details-with-warning.njk | 2 +- src/components/details/example-details.njk | 2 +- .../duration/example-duration-error.njk | 12 +++--- src/components/duration/example-duration.njk | 10 ++--- ...ple-header-external-with-service-links.njk | 2 +- .../header/example-header-internal.njk | 2 +- src/components/input/example-input-email.njk | 2 +- src/components/input/example-input-number.njk | 2 +- .../input/example-input-numeric-values.njk | 14 +++---- ...nput-text-with-character-limit-checker.njk | 2 +- .../example-input-text-with-description.njk | 2 +- src/components/input/example-input-text.njk | 2 +- .../example-mutually-exclusive-checkboxes.njk | 12 +++--- ...ple-mutually-exclusive-date-with-error.njk | 4 +- .../example-mutually-exclusive-email.njk | 4 +- ...le-mutually-exclusive-multiple-options.njk | 10 ++--- ...mple-radios-with-clear-button-expanded.njk | 18 ++++---- .../example-radios-with-clear-button.njk | 18 ++++---- .../example-radios-with-descriptions.njk | 10 ++--- .../radios/example-radios-with-error.njk | 8 ++-- ...dios-with-revealed-checkboxes-expanded.njk | 16 +++---- ...xample-radios-with-revealed-checkboxes.njk | 16 +++---- ...e-radios-with-revealed-radios-expanded.njk | 18 ++++---- .../example-radios-with-revealed-radios.njk | 16 +++---- ...e-radios-with-revealed-select-expanded.njk | 10 ++--- .../example-radios-with-revealed-select.njk | 8 ++-- ...dios-with-revealed-text-input-expanded.njk | 18 ++++---- ...xample-radios-with-revealed-text-input.njk | 18 ++++---- ...example-radios-with-visible-text-input.njk | 6 +-- .../example-relationships-error.njk | 26 ++++++------ .../example-relationships-you.njk | 26 ++++++------ .../relationships/example-relationships.njk | 26 ++++++------ .../select/example-select-with-error.njk | 2 +- .../example-select-with-inline-label.njk | 2 +- src/components/select/example-select.njk | 2 +- .../textarea/example-textarea-error.njk | 2 +- .../upload/example-upload-error.njk | 2 +- src/components/upload/example-upload.njk | 2 +- .../example-address-input-manual-error.njk | 4 +- .../example-address-input-manual.njk | 4 +- .../example-address-input-non-editable.njk | 4 +- .../addresses/example-address-input.njk | 4 +- .../example-errors-proto-errors.njk | 42 +++++++++---------- .../correct-errors/example-errors-proto.njk | 42 +++++++++---------- .../feedback/example-feedback-form-errors.njk | 16 +++---- .../feedback/example-feedback-form.njk | 12 +++--- .../hub-and-spoke/example-spoke-continue.njk | 2 +- .../example-input-email-with-error.njk | 4 +- .../example-phone-number-error.njk | 4 +- .../question/example-question-anatomy.njk | 2 +- .../send-a-web-form/example-errors.njk | 20 ++++----- src/patterns/send-a-web-form/example-form.njk | 20 ++++----- .../send-a-web-form/example-success.njk | 2 +- .../example-conversation.njk | 2 +- .../example-message-list.njk | 4 +- 87 files changed, 403 insertions(+), 403 deletions(-) diff --git a/src/components/access-code/example-access-code-error.njk b/src/components/access-code/example-access-code-error.njk index 612bcaa73a..3d8aca9600 100644 --- a/src/components/access-code/example-access-code-error.njk +++ b/src/components/access-code/example-access-code-error.njk @@ -74,7 +74,7 @@ layout: ~ {% endset %} {% call onsDetails({ - "id": "details", + "id": "details-access-code-error", "title": "Need to answer separately from your household?", "button": { "close": "Hide this", diff --git a/src/components/access-code/example-access-code.njk b/src/components/access-code/example-access-code.njk index 2b3f455049..1c98627b7b 100644 --- a/src/components/access-code/example-access-code.njk +++ b/src/components/access-code/example-access-code.njk @@ -18,7 +18,7 @@ layout: ~

Start study

{{ onsAccessCode({ - "id": "access-code", + "id": "access-code-example", "name": "access-code", "postTextboxLinkText": "Where to find your access code", "postTextboxLinkUrl": "#0", diff --git a/src/components/accordion/example-accordion-open.njk b/src/components/accordion/example-accordion-open.njk index f8fd253a4a..e2cf45ec88 100644 --- a/src/components/accordion/example-accordion-open.njk +++ b/src/components/accordion/example-accordion-open.njk @@ -13,14 +13,14 @@ "name": "dietary", "checkboxes": [ { - "id": "data", + "id": "data-checkbox", "label": { "text": "Data (309)" }, "value": "data" }, { - "id": "publications", + "id": "publications-checkbox", "label": { "text": "Publications (137)" }, @@ -33,21 +33,21 @@ "name": "name", "checkboxes": [ { - "id": "datasets", + "id": "datasets-checkbox", "label": { "text": "Datasets (100)" }, "value": "datasets" }, { - "id": "timeseries", + "id": "timeseries-checkbox", "label": { "text": "Timeseries (20)" }, "value": "timeseries" }, { - "id": "requested", + "id": "requested-checkbox", "label": { "text": "User requested data (16)" }, @@ -57,7 +57,7 @@ } }, { - "id": "areas", + "id": "areas-checkbox", "label": { "text": "Areas (0)" }, @@ -78,7 +78,7 @@ "name": "dietary", "checkboxes": [ { - "id": "crime", + "id": "crime-checkbox", "label": { "text": "Crime (200)" }, @@ -86,14 +86,14 @@ "checked": true }, { - "id": "education", + "id": "education-checkbox", "label": { "text": "Education (55)" }, - "value": "education" + "value": "education-checkbox" }, { - "id": "disability", + "id": "disability-checkbox", "label": { "text": "Disability (67)" }, diff --git a/src/components/accordion/example-accordion.njk b/src/components/accordion/example-accordion.njk index d230bf787c..0d9fec63d6 100644 --- a/src/components/accordion/example-accordion.njk +++ b/src/components/accordion/example-accordion.njk @@ -2,7 +2,7 @@ {{ onsAccordion({ - "id": "accordion", + "id": "accordion-example", "allButton": { "open": "Show all", "close": "Hide all" diff --git a/src/components/address-input/example-address-input-editable.njk b/src/components/address-input/example-address-input-editable.njk index c4a89f245e..2f41bfe525 100644 --- a/src/components/address-input/example-address-input-editable.njk +++ b/src/components/address-input/example-address-input-editable.njk @@ -1,11 +1,11 @@ {% from "components/address-input/_macro.njk" import onsAddressInput %} {{ onsAddressInput({ - "id": "address", + "id": "address-input-editable", "dontWrap": true, "label": { "text": "Enter address or postcode and select from results", - "id": "address-label" + "id": "address-label-input-editable" }, "isEditable": true, "mandatory": true, diff --git a/src/components/address-input/example-address-input-manual.njk b/src/components/address-input/example-address-input-manual.njk index e38cb92f35..0312948ebd 100644 --- a/src/components/address-input/example-address-input-manual.njk +++ b/src/components/address-input/example-address-input-manual.njk @@ -1,12 +1,12 @@ {% from "components/address-input/_macro.njk" import onsAddressInput %} {{ onsAddressInput({ - "id": "address", + "id": "address-input-manual", "dontWrap": true, "manualEntry": true, "label": { "text": "Enter address or postcode and select from results", - "id": "address-label" + "id": "address-label-input-manual" }, "line1": { "label": "Address line 1" @@ -20,4 +20,4 @@ "postcode": { "label": "Postcode" } -}) }} \ No newline at end of file +}) }} diff --git a/src/components/address-input/example-address-input.njk b/src/components/address-input/example-address-input.njk index 227e3bf861..767faa26bc 100644 --- a/src/components/address-input/example-address-input.njk +++ b/src/components/address-input/example-address-input.njk @@ -1,11 +1,11 @@ {% from "components/address-input/_macro.njk" import onsAddressInput %} {{ onsAddressInput({ - "id": "address", + "id": "address-input", "dontWrap": true, "label": { "text": "Enter address or postcode and select from results", - "id": "address-label" + "id": "address-label-input" }, "isEditable": false, "mandatory": true, diff --git a/src/components/autosuggest/example-autosuggest-country-multiple.njk b/src/components/autosuggest/example-autosuggest-country-multiple.njk index a95609ffe7..60009da400 100644 --- a/src/components/autosuggest/example-autosuggest-country-multiple.njk +++ b/src/components/autosuggest/example-autosuggest-country-multiple.njk @@ -4,10 +4,10 @@
{{ onsAutosuggest({ - "id": "country-of-birth", + "id": "country-of-birth-autosuggest-multiple", "label": { "text": "Passport", - "id": "country-of-birth-label", + "id": "country-of-birth-label-multiple", "description": "Enter your own answer or select from suggestions. You can enter multiple countries if you have a passport for more than one." }, "autocomplete": "off", diff --git a/src/components/autosuggest/example-autosuggest-country.njk b/src/components/autosuggest/example-autosuggest-country.njk index ad70194571..2c06d1b10b 100644 --- a/src/components/autosuggest/example-autosuggest-country.njk +++ b/src/components/autosuggest/example-autosuggest-country.njk @@ -4,7 +4,7 @@
{{ onsAutosuggest({ - "id": "country-of-birth", + "id": "country-of-birth-autosuggest", "label": { "text": "Current name of country", "description": "Enter your own answer or select from suggestions", diff --git a/src/components/back-link/example-back-link.njk b/src/components/back-link/example-back-link.njk index e0cc762c37..8a1b86cd3e 100644 --- a/src/components/back-link/example-back-link.njk +++ b/src/components/back-link/example-back-link.njk @@ -6,7 +6,7 @@ "itemsList": [ { "url": '/', - "id": "back", + "id": "backlink", "text": 'Back', "attributes": { "data-attribute": "Example attribute" diff --git a/src/components/card/example-card-set-with-images.njk b/src/components/card/example-card-set-with-images.njk index 15e3823877..0122f0b448 100644 --- a/src/components/card/example-card-set-with-images.njk +++ b/src/components/card/example-card-set-with-images.njk @@ -5,7 +5,7 @@
{{ onsCard({ - "id": 'title1', + "id": 'card-with-image-1', "textId": 'text1', "title": 'About the census', "url": '#0', @@ -16,7 +16,7 @@
{{ onsCard({ - "id": 'title2', + "id": 'card-with-image-2', "textId": 'text2', "title": 'Working on the census', "url": '#0', @@ -27,7 +27,7 @@
{{ onsCard({ - "id": 'title3', + "id": 'card-with-image-3', "textId": 'text3', "title": 'Your data and security', "url": '#0', diff --git a/src/components/card/example-card-set-with-lists.njk b/src/components/card/example-card-set-with-lists.njk index 90fb51bfbe..53867f09e9 100644 --- a/src/components/card/example-card-set-with-lists.njk +++ b/src/components/card/example-card-set-with-lists.njk @@ -5,7 +5,7 @@
{{ onsCard({ - "id": 'title1', + "id": 'card-with-list-1', "textId": 'text1', "title": 'About the census', "url": '#0', @@ -25,7 +25,7 @@
{{ onsCard({ - "id": 'title2', + "id": 'card-with-list-2', "textId": 'text2', "title": 'Working on the census', "url": '#0', @@ -45,7 +45,7 @@
{{ onsCard({ - "id": 'title3', + "id": 'card-with-list-3', "textId": 'text3', "title": 'Your data and security', "url": '#0', diff --git a/src/components/card/example-card-set.njk b/src/components/card/example-card-set.njk index 6d52264672..0a35d3551e 100644 --- a/src/components/card/example-card-set.njk +++ b/src/components/card/example-card-set.njk @@ -5,7 +5,7 @@
{{ onsCard({ - "id": 'title1', + "id": 'card-set-1', "textId": 'text1', "title": 'About the census', "url": '#0', @@ -15,7 +15,7 @@
{{ onsCard({ - "id": 'title2', + "id": 'card-set-2', "textId": 'text2', "title": 'Working on the census', "url": '#0', @@ -25,7 +25,7 @@
{{ onsCard({ - "id": 'title3', + "id": 'card-set-3', "textId": 'text3', "title": 'Your data and security', "url": '#0', diff --git a/src/components/card/example-card.njk b/src/components/card/example-card.njk index 231ca9333c..1332a373cd 100644 --- a/src/components/card/example-card.njk +++ b/src/components/card/example-card.njk @@ -1,7 +1,7 @@ {% from "components/card/_macro.njk" import onsCard %} {{ onsCard({ - "id": 'title', + "id": 'card-example', "textId": 'text', "title": 'Your data and security', "url": '#0', diff --git a/src/components/checkboxes/example-checkboxes-disabled.njk b/src/components/checkboxes/example-checkboxes-disabled.njk index e151b4d190..d07d5ecac7 100644 --- a/src/components/checkboxes/example-checkboxes-disabled.njk +++ b/src/components/checkboxes/example-checkboxes-disabled.njk @@ -8,21 +8,21 @@ "name": "dietary", "checkboxes": [ { - "id": "data", + "id": "data-checkbox-disabled", "label": { "text": "Data (309)" }, "value": "data" }, { - "id": "publications", + "id": "publications-checkbox-disabled", "label": { "text": "Publications (137)" }, "value": "publications" }, { - "id": "areas", + "id": "areas-checkbox-disabled", "label": { "text": "Areas (0)" }, diff --git a/src/components/checkboxes/example-checkboxes-error.njk b/src/components/checkboxes/example-checkboxes-error.njk index d76fc7e17c..50759ca28a 100644 --- a/src/components/checkboxes/example-checkboxes-error.njk +++ b/src/components/checkboxes/example-checkboxes-error.njk @@ -8,42 +8,42 @@ "dontWrap": true, "checkboxes": [ { - "id": "gluten-free", + "id": "gluten-free-checkbox-error", "label": { "text": "Gluten free" }, "value": "gluten-free" }, { - "id": "lactose-intolerant", + "id": "lactose-intolerant-checkbox-error", "label": { "text": "Lactose intolerant" }, "value": "lactose-intolerant" }, { - "id": "vegan", + "id": "vegan-checkbox-error", "label": { "text": "Vegan" }, "value": "vegan" }, { - "id": "vegetarian", + "id": "vegetarian-checkbox-error", "label": { "text": "Vegetarian" }, "value": "vegetarian" }, { - "id": "other-checkbox", + "id": "other-checkbox-error", "label": { "text": "Other" }, "checked": true, "value": "other", "other": { - "id": "other-textbox", + "id": "other-textbox-checbox-error", "name": "other-answer", "label": { "text": "Enter dietary requirements" @@ -53,7 +53,7 @@ ], "error": { "classes": "test", - "id": "dietary-error", + "id": "dietary-error-checkbox", "text": "Enter your dietary requirements" } }) diff --git a/src/components/checkboxes/example-checkboxes-with-descriptions.njk b/src/components/checkboxes/example-checkboxes-with-descriptions.njk index 36d59729f1..a8aa61433c 100644 --- a/src/components/checkboxes/example-checkboxes-with-descriptions.njk +++ b/src/components/checkboxes/example-checkboxes-with-descriptions.njk @@ -13,14 +13,14 @@ "name": "central-heating", "checkboxes": [ { - "id": "none", + "id": "none-checkbox-with-description", "label": { "text": "No central heating" }, "name": "none" }, { - "id": "mains-gas", + "id": "mains-gas-checkbox-with-description", "label": { "text": "Gas", "description": "Including tank or bottled gas" @@ -28,7 +28,7 @@ "name": "mains-gas" }, { - "id": "electric", + "id": "electric-checkbox-with-description", "label": { "text": "Electric", "description": "Including storage headers" @@ -36,14 +36,14 @@ "name": "electric" }, { - "id": "oil", + "id": "oil-checkbox-with-description", "label": { "text": "Oil" }, "name": "oil" }, { - "id": "wood", + "id": "wood-checkbox-with-description", "label": { "text": "Wood", "description": "For example, logs, waste wood or pellets" @@ -51,7 +51,7 @@ "name": "wood" }, { - "id": "solid-fuel", + "id": "solid-fuel-checkbox-with-description", "label": { "text": "Solid fuel", "description": "For example, coal" @@ -59,7 +59,7 @@ "name": "solid-fuel" }, { - "id": "renewable", + "id": "renewable-checkbox-with-description", "label": { "text": "Renewable energy", "description": "For example, solar thermal or heat pumps" diff --git a/src/components/checkboxes/example-checkboxes-with-hidden-label.njk b/src/components/checkboxes/example-checkboxes-with-hidden-label.njk index 3f2d898b3d..0bf49f8d34 100644 --- a/src/components/checkboxes/example-checkboxes-with-hidden-label.njk +++ b/src/components/checkboxes/example-checkboxes-with-hidden-label.njk @@ -40,7 +40,7 @@ {{ onsCheckbox({ - "id": "surveys-view", + "id": "surveys-view-example-checkbox-with-hidden-label", "hideLabel": true, "label": { "text": "View surveys" @@ -54,7 +54,7 @@ {{ onsCheckbox({ - "id": "surveys-edit", + "id": "surveys-edit-example-checkbox-with-hidden-label", "hideLabel": true, "label": { "text": "Edit surveys" @@ -71,7 +71,7 @@ {{ onsCheckbox({ - "id": "reporting-units-view", + "id": "reporting-units-view-example-checkbox-with-hidden-label", "hideLabel": true, "label": { "text": "View reporting units" @@ -85,7 +85,7 @@ {{ onsCheckbox({ - "id": "reporting-units-edit", + "id": "reporting-units-edit-example-checkbox-with-hidden-label", "hideLabel": true, "label": { "text": "Edit reporting units" @@ -102,7 +102,7 @@ {{ onsCheckbox({ - "id": "respondents-view", + "id": "respondents-view-example-checkbox-with-hidden-label", "hideLabel": true, "label": { "text": "View respondents" @@ -116,7 +116,7 @@ {{ onsCheckbox({ - "id": "respondents-edit", + "id": "respondents-edit-example-checkbox-with-hidden-label", "hideLabel": true, "label": { "text": "Edit respondents" @@ -129,7 +129,7 @@ {{ onsCheckbox({ - "id": "respondents-delete", + "id": "respondents-delete-example-checkbox-with-hidden-label", "hideLabel": true, "label": { "text": "Delete respondents" @@ -146,7 +146,7 @@ {{ onsCheckbox({ - "id": "messages-view", + "id": "messages-view-example-checkbox-with-hidden-label", "hideLabel": true, "label": { "text": "View messages" @@ -160,7 +160,7 @@ {{ onsCheckbox({ - "id": "messages-edit", + "id": "messages-edit-example-checkbox-with-hidden-label", "hideLabel": true, "label": { "text": "Edit messages" diff --git a/src/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk b/src/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk index 634ec7ea74..7bc0cfa595 100644 --- a/src/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk +++ b/src/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk @@ -8,7 +8,7 @@ "name": "dietary", "checkboxes": [ { - "id": "data", + "id": "data-example-checkbox-with-revealed-checkboxes-expanded", "label": { "text": "Data (309)" }, @@ -22,21 +22,21 @@ "name": "name", "checkboxes": [ { - "id": "datasets", + "id": "datasets-example-checkbox-with-revealed-checkboxes-expanded", "label": { "text": "Datasets (100)" }, "value": "datasets" }, { - "id": "timeseries", + "id": "timeseries-example-checkbox-with-revealed-checkboxes-expanded", "label": { "text": "Timeseries (20)" }, "value": "timeseries" }, { - "id": "requested", + "id": "requested-example-checkbox-with-revealed-checkboxes-expanded", "label": { "text": "User requested data (17)" }, @@ -46,7 +46,7 @@ } }, { - "id": "publications", + "id": "publications-example-checkbox-with-revealed-checkboxes-expanded", "label": { "text": "Publications (137)" }, @@ -60,14 +60,14 @@ "name": "name", "checkboxes": [ { - "id": "press-release", + "id": "press-release-example-checkbox-with-revealed-checkboxes-expanded", "label": { "text": "Press release (100)" }, "value": "pressrelease" }, { - "id": "bulletin", + "id": "bulletin-example-checkbox-with-revealed-checkboxes-expanded", "label": { "text": "Bulletin (20)" }, @@ -77,7 +77,7 @@ } }, { - "id": "areas", + "id": "areas-example-checkbox-with-revealed-checkboxes-expanded", "label": { "text": "Areas (0)" }, diff --git a/src/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk b/src/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk index 2e7cefc9c6..f31021a79e 100644 --- a/src/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +++ b/src/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk @@ -8,7 +8,7 @@ "name": "dietary", "checkboxes": [ { - "id": "data", + "id": "data-example-with-revealed-checkboxes", "label": { "text": "Data (309)" }, @@ -21,21 +21,21 @@ "name": "name", "checkboxes": [ { - "id": "datasets", + "id": "datasets-example-with-revealed-checkboxes", "label": { "text": "Datasets (100)" }, "value": "datasets" }, { - "id": "timeseries", + "id": "timeseries-example-with-revealed-checkboxes", "label": { "text": "Timeseries (20)" }, "value": "timeseries" }, { - "id": "requested", + "id": "requested-example-with-revealed-checkboxes", "label": { "text": "User requested data (17)" }, @@ -45,7 +45,7 @@ } }, { - "id": "publications", + "id": "publications-example-with-revealed-checkboxes", "label": { "text": "Publications (137)" }, @@ -58,14 +58,14 @@ "name": "name", "checkboxes": [ { - "id": "press-release", + "id": "press-release-example-with-revealed-checkboxes", "label": { "text": "Press release (100)" }, "value": "pressrelease" }, { - "id": "bulletin", + "id": "bulletin-example-with-revealed-checkboxes", "label": { "text": "Bulletin (20)" }, @@ -75,7 +75,7 @@ } }, { - "id": "areas", + "id": "areas-example-with-revealed-checkboxes", "label": { "text": "Areas (0)" }, diff --git a/src/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk b/src/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk index ee4c1d5f3f..aea0b47b20 100644 --- a/src/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk +++ b/src/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk @@ -8,21 +8,21 @@ "borderless": true, "checkboxes": [ { - "id": "post", + "id": "post-example-with-revealed-radios-expanded", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-with-revealed-radios-expanded", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-with-revealed-radios-expanded", "label": { "text": "By phone" }, @@ -30,34 +30,34 @@ "checked": true, "other": { "otherType": "radios", - "id": "phone-time", + "id": "phone-time-example-with-revealed-radios-expanded", "name": "phone-time", "legend": "Choose preferred time of day", "radios": [ { "value": "anytime", - "id": "anytime", + "id": "anytime-example-with-revealed-radios-expanded", "label": { "text": "Any time of day" } }, { "value": "morning", - "id": "morning", + "id": "morning-example-with-revealed-radios-expanded", "label": { "text": "Morning" } }, { "value": "afternoon", - "id": "afternoon", + "id": "afternoon-example-with-revealed-radios-expanded", "label": { "text": "Afternoon" } }, { "value": "evening", - "id": "evening", + "id": "evening-example-with-revealed-radios-expanded", "label": { "text": "Evening" } diff --git a/src/components/checkboxes/example-checkboxes-with-revealed-radios.njk b/src/components/checkboxes/example-checkboxes-with-revealed-radios.njk index 0c19a30b27..3e5f382fc5 100644 --- a/src/components/checkboxes/example-checkboxes-with-revealed-radios.njk +++ b/src/components/checkboxes/example-checkboxes-with-revealed-radios.njk @@ -8,55 +8,55 @@ "borderless": true, "checkboxes": [ { - "id": "post", + "id": "post-example-with-revealed-radios", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-with-revealed-radios", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-with-revealed-radios", "label": { "text": "By phone" }, "value": "phone", "other": { "otherType": "radios", - "id": "phone-time", + "id": "phone-time-example-with-revealed-radios", "name": "phone-time", "legend": "Choose preferred time of day", "radios": [ { "value": "anytime", - "id": "anytime", + "id": "anytime-example-with-revealed-radios", "label": { "text": "Any time of day" } }, { "value": "morning", - "id": "morning", + "id": "morning-example-with-revealed-radios", "label": { "text": "Morning" } }, { "value": "afternoon", - "id": "afternoon", + "id": "afternoon-example-with-revealed-radios", "label": { "text": "Afternoon" } }, { "value": "evening", - "id": "evening", + "id": "evening-example-with-revealed-radios", "label": { "text": "Evening" } diff --git a/src/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk b/src/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk index fc1c8e4edf..f068f76f8b 100644 --- a/src/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk +++ b/src/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk @@ -13,21 +13,21 @@ "name": "contact", "checkboxes": [ { - "id": "post", + "id": "post-example-checkbox-with-revealed-select-expanded", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-checkbox-with-revealed-select-expanded", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-checkbox-with-revealed-select-expanded", "label": { "text": "By phone" }, @@ -35,7 +35,7 @@ "checked": true, "other": { "otherType": "select", - "id": "phone-time", + "id": "phone-time-example-checkbox-with-revealed-select-expanded", "name": "phone-time", "label": { "text": "Choose preferred time of day" diff --git a/src/components/checkboxes/example-checkboxes-with-revealed-select.njk b/src/components/checkboxes/example-checkboxes-with-revealed-select.njk index e4a30d0d50..bf083e5d6c 100644 --- a/src/components/checkboxes/example-checkboxes-with-revealed-select.njk +++ b/src/components/checkboxes/example-checkboxes-with-revealed-select.njk @@ -13,28 +13,28 @@ "name": "contact", "checkboxes": [ { - "id": "post", + "id": "post-example-checkbox-with-revealed-select", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-checkbox-with-revealed-select", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-checkbox-with-revealed-select", "label": { "text": "By phone" }, "value": "phone", "other": { "otherType": "select", - "id": "phone-time", + "id": "phone-time-example-checkbox-with-revealed-select", "name": "phone-time", "label": { "text": "Choose preferred time of day" diff --git a/src/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk b/src/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk index 3d8f2731ff..2e04f38721 100644 --- a/src/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk +++ b/src/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk @@ -12,42 +12,42 @@ "dontWrap": true, "checkboxes": [ { - "id": "gluten-free", + "id": "gluten-free-example-checkbox-with-revealed-text-input-expanded", "label": { "text": "Gluten free" }, "value": "gluten-free" }, { - "id": "lactose-intolerant", + "id": "lactose-intolerant-example-checkbox-with-revealed-text-input-expanded", "label": { "text": "Lactose intolerant" }, "value": "lactose-intolerant" }, { - "id": "vegan", + "id": "vegan-example-checkbox-with-revealed-text-input-expanded", "label": { "text": "Vegan" }, "value": "vegan" }, { - "id": "vegetarian", + "id": "vegetarian-example-checkbox-with-revealed-text-input-expanded", "label": { "text": "Vegetarian" }, "value": "vegetarian" }, { - "id": "other-checkbox", + "id": "other-checkbox-with-revealed-text-input-expanded", "label": { "text": "Other" }, "value": "other", "checked": true, "other": { - "id": "other-textbox", + "id": "other-textbox-example-checkbox-with-revealed-text-input-expanded", "name": "other-answer", "label": { "text": "Enter dietary requirements" diff --git a/src/components/checkboxes/example-checkboxes-with-revealed-text-input.njk b/src/components/checkboxes/example-checkboxes-with-revealed-text-input.njk index 4b44c9a4c0..bb5f5c3546 100644 --- a/src/components/checkboxes/example-checkboxes-with-revealed-text-input.njk +++ b/src/components/checkboxes/example-checkboxes-with-revealed-text-input.njk @@ -12,41 +12,41 @@ "dontWrap": true, "checkboxes": [ { - "id": "gluten-free", + "id": "gluten-free-example-checkbox-with-revealed-text-input", "label": { "text": "Gluten free" }, "value": "gluten-free" }, { - "id": "lactose-intolerant", + "id": "lactose-intolerant-example-checkbox-with-revealed-text-input", "label": { "text": "Lactose intolerant" }, "value": "lactose-intolerant" }, { - "id": "vegan", + "id": "vegan-example-checkbox-with-revealed-text-input", "label": { "text": "Vegan" }, "value": "vegan" }, { - "id": "vegetarian", + "id": "vegetarian-example-checkbox-with-revealed-text-input", "label": { "text": "Vegetarian" }, "value": "vegetarian" }, { - "id": "other-checkbox", + "id": "other-checkbox-with-revealed-text-input", "label": { "text": "Other" }, "value": "other", "other": { - "id": "other-textbox", + "id": "other-textbox-example-checkbox-with-revealed-text-input", "name": "other-answer", "label": { "text": "Enter dietary requirements" diff --git a/src/components/checkboxes/example-checkboxes-with-select-all-button.njk b/src/components/checkboxes/example-checkboxes-with-select-all-button.njk index cba49aedd3..955e022dd2 100644 --- a/src/components/checkboxes/example-checkboxes-with-select-all-button.njk +++ b/src/components/checkboxes/example-checkboxes-with-select-all-button.njk @@ -18,28 +18,28 @@ }, "checkboxes": [ { - "id": "mobile-phone", + "id": "mobile-phone-example-checkbox-with-select-all-button", "label": { "text": "Mobile phone" }, "value": "mobile-phone" }, { - "id": "tablet", + "id": "tablet-example-checkbox-with-select-all-button", "label": { "text": "Tablet" }, "value": "tablet" }, { - "id": "laptop", + "id": "laptop-example-checkbox-with-select-all-button", "label": { "text": "Laptop" }, "value": "laptop" }, { - "id": "desktop", + "id": "desktop-example-checkbox-with-select-all-button", "label": { "text": "Desktop computer" }, diff --git a/src/components/checkboxes/example-checkboxes-with-visible-text-input.njk b/src/components/checkboxes/example-checkboxes-with-visible-text-input.njk index 007c9a4aa4..938222bb77 100644 --- a/src/components/checkboxes/example-checkboxes-with-visible-text-input.njk +++ b/src/components/checkboxes/example-checkboxes-with-visible-text-input.njk @@ -13,42 +13,42 @@ "name": "dietary", "checkboxes": [ { - "id": "gluten-free", + "id": "gluten-free-example-checkbox-with-visible-text-input", "label": { "text": "Gluten free" }, "value": "gluten-free" }, { - "id": "lactose-intolerant", + "id": "lactose-intolerant-example-checkbox-with-visible-text-input", "label": { "text": "Lactose intolerant" }, "value": "lactose-intolerant" }, { - "id": "vegan", + "id": "vegan-example-checkbox-with-visible-text-input", "label": { "text": "Vegan" }, "value": "vegan" }, { - "id": "vegetarian", + "id": "vegetarian-example-checkbox-with-visible-text-input", "label": { "text": "Vegetarian" }, "value": "vegetarian" }, { - "id": "other-checkbox", + "id": "other-checkbox-with-visible-text-input", "label": { "text": "Other" }, "value": "other", "other": { "open": true, - "id": "other-textbox", + "id": "other-textbox-example-checkbox-with-visible-text-input", "name": "other-answer", "label": { "text": "Enter dietary requirements" diff --git a/src/components/checkboxes/example-checkboxes-without-border.njk b/src/components/checkboxes/example-checkboxes-without-border.njk index df4aeee064..de90c091ee 100644 --- a/src/components/checkboxes/example-checkboxes-without-border.njk +++ b/src/components/checkboxes/example-checkboxes-without-border.njk @@ -8,21 +8,21 @@ "borderless": true, "checkboxes": [ { - "id": "booklet", + "id": "booklet-example-checkbox-without-border", "label": { "text": "Booklet" }, "value": "booklet" }, { - "id": "logo", + "id": "logo-example-checkbox-without-border", "label": { "text": "Logo" }, "value": "logo" }, { - "id": "poster", + "id": "poster-example-checkbox-without-border", "label": { "text": "Poster" }, diff --git a/src/components/checkboxes/example-checkboxes.njk b/src/components/checkboxes/example-checkboxes.njk index a9de78ad6a..293558f162 100644 --- a/src/components/checkboxes/example-checkboxes.njk +++ b/src/components/checkboxes/example-checkboxes.njk @@ -13,28 +13,28 @@ "name": "devices", "checkboxes": [ { - "id": "mobile-phone", + "id": "mobile-phone-example", "label": { "text": "Mobile phone" }, "value": "mobile-phone" }, { - "id": "tablet", + "id": "tablet-example", "label": { "text": "Tablet" }, "value": "tablet" }, { - "id": "laptop", + "id": "laptop-example", "label": { "text": "Laptop" }, "value": "laptop" }, { - "id": "desktop", + "id": "desktop-example", "label": { "text": "Desktop computer" }, diff --git a/src/components/date-input/example-date-input-error.njk b/src/components/date-input/example-date-input-error.njk index 23b2b3662b..4ba505e4e4 100644 --- a/src/components/date-input/example-date-input-error.njk +++ b/src/components/date-input/example-date-input-error.njk @@ -2,7 +2,7 @@ {% from "components/date-input/_macro.njk" import onsDateInput %} {{ onsDateInput({ - "id": "period-from-date", + "id": "period-from-date-input-error-example", "legendOrLabel": "Period from:", "description": "For example, 31 3 2019", "day": { @@ -31,7 +31,7 @@ {{ onsDateInput({ - "id": "period-to-date", + "id": "period-to-date-input-error-example", "legendOrLabel": "Period to:", "description": "For example, 31 3 2020", "day": { diff --git a/src/components/date-input/example-date-input.njk b/src/components/date-input/example-date-input.njk index 49a5c428fd..d74c6ac3aa 100644 --- a/src/components/date-input/example-date-input.njk +++ b/src/components/date-input/example-date-input.njk @@ -2,7 +2,7 @@ {{ onsDateInput({ - "id": "date", + "id": "date-input-example", "legendOrLabel": "Date of birth", "description": "For example, 31 3 1980", "day": { diff --git a/src/components/details/example-details-with-warning.njk b/src/components/details/example-details-with-warning.njk index b4b96f05ed..bea57bf79a 100644 --- a/src/components/details/example-details-with-warning.njk +++ b/src/components/details/example-details-with-warning.njk @@ -3,7 +3,7 @@ {% call onsDetails({ - "id": "details", + "id": "details-example-with-warning", "title": "Need to answer separately from your household?" }) %} diff --git a/src/components/details/example-details.njk b/src/components/details/example-details.njk index c5058bc511..b87312fd71 100644 --- a/src/components/details/example-details.njk +++ b/src/components/details/example-details.njk @@ -2,7 +2,7 @@ {{ onsDetails({ - "id": "details", + "id": "details-example", "title": "What is a photovoltaic system?", "content": "

A typical photovoltaic system employs solar panels, each comprising a number of solar cells, which generate electrical power. PV installations may be ground-mounted, rooftop mounted or wall mounted. The mount may be fixed, or use a solar tracker to follow the sun across the sky.

" }) diff --git a/src/components/duration/example-duration-error.njk b/src/components/duration/example-duration-error.njk index d4ba66d088..52f7ce2228 100644 --- a/src/components/duration/example-duration-error.njk +++ b/src/components/duration/example-duration-error.njk @@ -3,27 +3,27 @@ {{ onsDuration({ - "id": "address-duration", + "id": "address-duration-error-example", "legendOrLabel": 'How long have you lived at this address?', "legendClasses": 'ons-u-vh', "field1": { - "id": "address-duration-years", + "id": "address-duration-years-error-example", "name": "address-duration-years", "suffix": { "text": "Years", - "id": "address-duration-years-suffix" + "id": "address-duration-years-suffix-error-example" } }, "field2": { - "id": "address-duration-months", + "id": "address-duration-months-error-example", "name": "address-duration-months", "suffix": { "text": "Months", - "id": "address-duration-months-suffix" + "id": "address-duration-months-suffix-error-example" } }, "error": { - "id": "address-duration-error", + "id": "address-duration-error-example", "text": "Enter how long you have lived at this address" } }) diff --git a/src/components/duration/example-duration.njk b/src/components/duration/example-duration.njk index 1dfdce9192..14b6749008 100644 --- a/src/components/duration/example-duration.njk +++ b/src/components/duration/example-duration.njk @@ -7,25 +7,25 @@ "legendIsQuestionTitle": true }) %} {{ onsDuration({ - "id": "address-duration", + "id": "address-duration-example", "dontWrap": true, "field1": { - "id": "address-duration-years", + "id": "address-duration-years-example", "name": "address-duration-years", "suffix": { "text": "Years", - "id": "address-duration-years-suffix" + "id": "address-duration-years-suffix-example" }, "attributes": { "autocomplete": "off" } }, "field2": { - "id": "address-duration-months", + "id": "address-duration-months-example", "name": "address-duration-months", "suffix": { "text": "Months", - "id": "address-duration-months-suffix" + "id": "address-duration-months-suffix-example" }, "attributes": { "autocomplete": "off" diff --git a/src/components/header/example-header-external-with-service-links.njk b/src/components/header/example-header-external-with-service-links.njk index 67a787be99..47cd3e6d83 100644 --- a/src/components/header/example-header-external-with-service-links.njk +++ b/src/components/header/example-header-external-with-service-links.njk @@ -9,7 +9,7 @@ "mastheadLogoUrl": '#0', "titleUrl": '#0', "serviceLinks": { - "id": "service-links", + "id": "service-links-external", "ariaLabel": 'Services menu', "ariaListLabel": 'Menu', "toggleServicesButton": { diff --git a/src/components/header/example-header-internal.njk b/src/components/header/example-header-internal.njk index e3794dbffe..33e72dee50 100644 --- a/src/components/header/example-header-internal.njk +++ b/src/components/header/example-header-internal.njk @@ -10,7 +10,7 @@ "variants": 'internal', "titleUrl": '#0', "serviceLinks": { - "id": "service-links", + "id": "service-links-internal", "ariaLabel": 'Services menu', "ariaListLabel": 'Menu', "toggleServicesButton": { diff --git a/src/components/input/example-input-email.njk b/src/components/input/example-input-email.njk index c0312c3d9b..7c6b61f67c 100644 --- a/src/components/input/example-input-email.njk +++ b/src/components/input/example-input-email.njk @@ -1,7 +1,7 @@ {% from "components/input/_macro.njk" import onsInput %} {{ onsInput({ - "id": "email", + "id": "email-example-input-email", "type": "email", "autocomplete": "email", "label": { diff --git a/src/components/input/example-input-number.njk b/src/components/input/example-input-number.njk index 71fae48d19..6f83455d05 100644 --- a/src/components/input/example-input-number.njk +++ b/src/components/input/example-input-number.njk @@ -1,7 +1,7 @@ {% from "components/input/_macro.njk" import onsInput %} {{ onsInput({ - "id": "number", + "id": "number-example-input", "type": "number", "width": "2", "autocomplete": "off", diff --git a/src/components/input/example-input-numeric-values.njk b/src/components/input/example-input-numeric-values.njk index 325bf1cc54..4f08055eff 100644 --- a/src/components/input/example-input-numeric-values.njk +++ b/src/components/input/example-input-numeric-values.njk @@ -1,7 +1,7 @@ {% from "components/input/_macro.njk" import onsInput %} {{ onsInput({ - "id": "number", + "id": "number-example-input-numeric-values", "type": "number", "width": "2", "autocomplete": "off", @@ -15,7 +15,7 @@ }} {{ onsInput({ - "id": "prefixed", + "id": "prefixed-example-input-numeric-values", "type": "number", "width": "6", "autocomplete": "off", @@ -25,13 +25,13 @@ "prefix": { "text": "£", "title": "British pounds (GBP)", - "id": "annual-salary-gpb-prefix" + "id": "annual-salary-gpb-prefix-example-input-numeric-values" } }) }} {{ onsInput({ - "id": "suffixed-percent", + "id": "suffixed-percent-example-input-numeric-values", "type": "number", "width": "3", "autocomplete": "off", @@ -41,13 +41,13 @@ "suffix": { "title": "per cent", "text": "%", - "id": "internet-access-per-cent-suffix" + "id": "internet-access-per-cent-suffix-example-input-numeric-values" } }) }} {{ onsInput({ - "id": "suffixed-centimetres", + "id": "suffixed-centimetres-example-input-numeric-values", "type": "number", "width": "4", "autocomplete": "off", @@ -58,7 +58,7 @@ "suffix": { "title": "centimetres", "text": "cm", - "id": "length-cm-suffix" + "id": "length-cm-suffix-example-input-numeric-values" } }) }} diff --git a/src/components/input/example-input-text-with-character-limit-checker.njk b/src/components/input/example-input-text-with-character-limit-checker.njk index 50f60752a4..7a6d95cd9a 100644 --- a/src/components/input/example-input-text-with-character-limit-checker.njk +++ b/src/components/input/example-input-text-with-character-limit-checker.njk @@ -1,7 +1,7 @@ {% from "components/input/_macro.njk" import onsInput %} {{ onsInput({ - "id": "text", + "id": "text-example-input-with-char-limit-checker", "label": { "text": "Enter some text" }, diff --git a/src/components/input/example-input-text-with-description.njk b/src/components/input/example-input-text-with-description.njk index 61d785478b..0d8e19f61d 100644 --- a/src/components/input/example-input-text-with-description.njk +++ b/src/components/input/example-input-text-with-description.njk @@ -1,7 +1,7 @@ {% from "components/input/_macro.njk" import onsInput %} {{ onsInput({ - "id": "text", + "id": "text-example-input-with-description", "label": { "text": "Enter some text", "description": "Example description hint text" diff --git a/src/components/input/example-input-text.njk b/src/components/input/example-input-text.njk index 56bb58877c..5b5b14be2e 100644 --- a/src/components/input/example-input-text.njk +++ b/src/components/input/example-input-text.njk @@ -1,7 +1,7 @@ {% from "components/input/_macro.njk" import onsInput %} {{ onsInput({ - "id": "text", + "id": "text-example-input", "label": { "text": "Enter some text" } diff --git a/src/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk b/src/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk index 8e1f56c484..5a4765ed5e 100644 --- a/src/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk +++ b/src/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk @@ -13,34 +13,34 @@ "name": "mutually-exclusive", "checkboxes": [ { - "id": "gas", + "id": "gas-example-mutually-exclusive-checkbox", "label": { "text": "Gas" }, "value": "gas" }, { - "id": "electric", + "id": "electric-example-mutually-exclusive-checkbox", "label": { "text": "Electric" }, "value": "electric" }, { - "id": "solid-fuel", + "id": "solid-fuel-example-mutually-exclusive-checkbox", "label": { "text": "Solid fuel" }, "value": "solid-fuel" }, { - "id": "other-fuel", + "id": "other-fuel-example-mutually-exclusive-checkbox", "label": { "text": "Other" }, "value": "other", "other": { - "id": "other-fuel-textbox", + "id": "other-fuel-textbox-example-mutually-exclusive-checkbox", "name": "other-fuel-answer", "label": { "text": "Please specify" @@ -55,7 +55,7 @@ "deselectExclusiveOptionAdjective": "deselected", "exclusiveOptions": [ { - "id": "no-central-heating", + "id": "no-central-heating-example-mutually-exclusive-checkbox", "label": { "text": "No central heating" }, diff --git a/src/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk b/src/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk index f37f685cb8..f45e4e0391 100644 --- a/src/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk +++ b/src/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk @@ -2,7 +2,7 @@ {{ onsDateInput({ - "id": "date-mutually-exclusive", + "id": "date-mutually-exclusive-with-error", "legendOrLabel": "When did you leave your last paid job?", "legendClasses": "ons-u-vh", "day": { @@ -30,7 +30,7 @@ "deselectExclusiveOptionAdjective": "deselected", "exclusiveOptions": [ { - "id": "date-exclusive-checkbox", + "id": "date-exclusive-checkbox-with-error", "name": "no-paid-job", "value": "no-paid-job", "label": { diff --git a/src/components/mutually-exclusive/example-mutually-exclusive-email.njk b/src/components/mutually-exclusive/example-mutually-exclusive-email.njk index be6838b624..720e21932b 100644 --- a/src/components/mutually-exclusive/example-mutually-exclusive-email.njk +++ b/src/components/mutually-exclusive/example-mutually-exclusive-email.njk @@ -8,7 +8,7 @@ }) %} {{ onsInput({ - "id": "email", + "id": "email-example-mutually-exclusive", "type": "email", "label": { "text": "Email address", @@ -22,7 +22,7 @@ "deselectExclusiveOptionAdjective": "deselected", "exclusiveOptions": [ { - "id": "email-checkbox", + "id": "email-checkbox-example-mutually-exclusive", "name": "no-email", "value": "no-email", "label": { diff --git a/src/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk b/src/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk index 0abb4f84da..10ac32c5cb 100644 --- a/src/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk +++ b/src/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk @@ -13,21 +13,21 @@ "name": "mutually-exclusive", "checkboxes": [ { - "id": "gas", + "id": "gas-example-mutually-exclusive-multiple-options", "label": { "text": "Gas" }, "value": "gas" }, { - "id": "electric", + "id": "electric-example-mutually-exclusive-multiple-options", "label": { "text": "Electric" }, "value": "electric" }, { - "id": "solid-fuel", + "id": "solid-fuel-example-mutually-exclusive-multiple-options", "label": { "text": "Solid fuel" }, @@ -41,7 +41,7 @@ "deselectExclusiveOptionAdjective": "deselected", "exclusiveOptions": [ { - "id": "no-central-heating", + "id": "no-central-heating-example-mutually-exclusive-multiple-options", "name": "no central heating", "label": { "text": "No central heating" @@ -49,7 +49,7 @@ "value": "no-central-heating" }, { - "id": "other", + "id": "other-example-mutually-exclusive-multiple-options", "name": "other", "label": { "text": "Other" diff --git a/src/components/radios/example-radios-with-clear-button-expanded.njk b/src/components/radios/example-radios-with-clear-button-expanded.njk index c47984a3db..cfe6c91652 100644 --- a/src/components/radios/example-radios-with-clear-button-expanded.njk +++ b/src/components/radios/example-radios-with-clear-button-expanded.njk @@ -26,14 +26,14 @@ }, "radios": [ { - "id": "none", + "id": "none-radio-with-clear-button-expanded", "label": { "text": "No religion" }, "value": "none" }, { - "id": "christian", + "id": "christian-radio-with-clear-button-expanded", "label": { "text": "Christian", "description": "Including Church of England, Catholic, Protestant and all other Christian denominations" @@ -41,14 +41,14 @@ "value": "christian" }, { - "id": "buddhist", + "id": "buddhist-radio-with-clear-button-expanded", "label": { "text": "Buddhist" }, "value": "buddhist" }, { - "id": "hindu", + "id": "hindu-radio-with-clear-button-expanded", "label": { "text": "Hindu" }, @@ -62,21 +62,21 @@ "value": "jewish" }, { - "id": "muslim", + "id": "muslim-radio-with-clear-button-expanded", "label": { "text": "Muslim" }, "value": "muslim" }, { - "id": "sikh", + "id": "sikh-radio-with-clear-button-expanded", "label": { "text": "Sikh" }, "value": "sikh" }, { - "id": "other-radio", + "id": "other-radio-with-clear-button-expanded", "label": { "text": "Any other religion" }, @@ -84,7 +84,7 @@ "checked": true, "other": { "otherType": "input", - "id": "other-textbox", + "id": "other-textbox-radio-with-clear-button-expanded", "name": "other-answer", "label": { "text": "Enter your religion" @@ -95,4 +95,4 @@ }) }} -{% endcall %} \ No newline at end of file +{% endcall %} diff --git a/src/components/radios/example-radios-with-clear-button.njk b/src/components/radios/example-radios-with-clear-button.njk index 1943010907..cd7ecff7f3 100644 --- a/src/components/radios/example-radios-with-clear-button.njk +++ b/src/components/radios/example-radios-with-clear-button.njk @@ -26,14 +26,14 @@ }, "radios": [ { - "id": "none", + "id": "none-radio-with-clear-button", "label": { "text": "No religion" }, "value": "none" }, { - "id": "christian", + "id": "christian-radio-with-clear-button", "label": { "text": "Christian", "description": "Including Church of England, Catholic, Protestant and all other Christian denominations" @@ -41,49 +41,49 @@ "value": "christian" }, { - "id": "buddhist", + "id": "buddhist-radio-with-clear-button", "label": { "text": "Buddhist" }, "value": "buddhist" }, { - "id": "hindu", + "id": "hindu-radio-with-clear-button", "label": { "text": "Hindu" }, "value": "hindu" }, { - "id": "jewish", + "id": "jewish-radio-with-clear-button", "label": { "text": "Jewish" }, "value": "jewish" }, { - "id": "muslim", + "id": "muslim-radio-with-clear-button", "label": { "text": "Muslim" }, "value": "muslim" }, { - "id": "sikh", + "id": "sikh-radio-with-clear-button", "label": { "text": "Sikh" }, "value": "sikh" }, { - "id": "other-radio", + "id": "other-radio-radio-with-clear-button", "label": { "text": "Any other religion" }, "value": "other", "other": { "otherType": "input", - "id": "other-textbox", + "id": "other-textbox-radio-with-clear-button", "name": "other-answer", "label": { "text": "Enter your religion" diff --git a/src/components/radios/example-radios-with-descriptions.njk b/src/components/radios/example-radios-with-descriptions.njk index 70e90a868e..2ac57a2d08 100644 --- a/src/components/radios/example-radios-with-descriptions.njk +++ b/src/components/radios/example-radios-with-descriptions.njk @@ -12,7 +12,7 @@ "name": "ethnicity", "radios": [ { - "id": "white", + "id": "white-example-radio-with-description", "label": { "text": "White", "description": "Includes British, Northern Irish, Irish, Gypsy, Irish Traveller, Roma or any other White background" @@ -20,7 +20,7 @@ "name": "white" }, { - "id": "mixed", + "id": "mixed-example-radio-with-description", "label": { "text": "Mixed or Multiple ethnic groups", "description": "Includes White and Black Caribbean, White and Black African, White and Asian or any other Mixed or Multiple background" @@ -28,7 +28,7 @@ "name": "mixed" }, { - "id": "asian", + "id": "asian-example-radio-with-description", "label": { "text": "Asian or Asian British", "description": "Includes Indian, Pakistani, Bangladeshi, Chinese or any other Asian background" @@ -36,7 +36,7 @@ "name": "asian" }, { - "id": "black", + "id": "black-example-radio-with-description", "label": { "text": "Black, Black British, Caribbean or African", "description": "Includes Black British, Caribbean, African or any other Black background" @@ -44,7 +44,7 @@ "name": "black" }, { - "id": "other", + "id": "other-example-radio-with-description", "label": { "text": "Other ethnic group", "description": "Includes Arab or any other ethnic group" diff --git a/src/components/radios/example-radios-with-error.njk b/src/components/radios/example-radios-with-error.njk index c34fb602cd..c80231197f 100644 --- a/src/components/radios/example-radios-with-error.njk +++ b/src/components/radios/example-radios-with-error.njk @@ -6,14 +6,14 @@ "dontWrap": true, "radios": [ { - "id": "yes", + "id": "yes-example-radio-with-error", "label": { "text": "Yes" }, "value": "yes" }, { - "id": "no", + "id": "no-example-radio-with-error", "label": { "text": "No" }, @@ -22,7 +22,7 @@ "other": { "open": true, "otherType": "input", - "id": "no-textbox", + "id": "no-textbox-example-radio-with-error", "name": "no-answer", "label": { "text": "Enter your gender identity" @@ -31,7 +31,7 @@ } ], "error": { - "id": "dietary-error", + "id": "dietary-error-example-radio-with-error", "text": "Enter your gender identity" } }) diff --git a/src/components/radios/example-radios-with-revealed-checkboxes-expanded.njk b/src/components/radios/example-radios-with-revealed-checkboxes-expanded.njk index dfa221fdc0..9e4e9e6a34 100644 --- a/src/components/radios/example-radios-with-revealed-checkboxes-expanded.njk +++ b/src/components/radios/example-radios-with-revealed-checkboxes-expanded.njk @@ -7,21 +7,21 @@ "borderless": true, "radios": [ { - "id": "post", + "id": "post-example-radio-with-revealed-checkbox-expanded", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-radio-with-revealed-checkbox-expanded", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-radio-with-revealed-checkbox-expanded", "label": { "text": "By phone" }, @@ -30,34 +30,34 @@ "other": { "otherType": "checkboxes", "selectAllChildren": true, - "id": "phone-time", + "id": "phone-time-example-radio-with-revealed-checkbox-expanded", "name": "phone-time", "legend": "Select preferred times of day", "checkboxes": [ { "value": "anytime", - "id": "anytime", + "id": "anytime-example-radio-with-revealed-checkbox-expanded", "label": { "text": "Anytime of day" } }, { "value": "morning", - "id": "morning", + "id": "morning-example-radio-with-revealed-checkbox-expanded", "label": { "text": "Morning" } }, { "value": "afternoon", - "id": "afternoon", + "id": "afternoon-example-radio-with-revealed-checkbox-expanded", "label": { "text": "Afternoon" } }, { "value": "evening", - "id": "evening", + "id": "evening-example-radio-with-revealed-checkbox-expanded", "label": { "text": "Evening" } diff --git a/src/components/radios/example-radios-with-revealed-checkboxes.njk b/src/components/radios/example-radios-with-revealed-checkboxes.njk index 5b5079e3da..d399b6853a 100644 --- a/src/components/radios/example-radios-with-revealed-checkboxes.njk +++ b/src/components/radios/example-radios-with-revealed-checkboxes.njk @@ -7,21 +7,21 @@ "borderless": true, "radios": [ { - "id": "post", + "id": "post-example-radio-with-revealed-checkbox", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-radio-with-revealed-checkbox", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-radio-with-revealed-checkbox", "label": { "text": "By phone" }, @@ -29,34 +29,34 @@ "other": { "otherType": "checkboxes", "selectAllChildren": true, - "id": "phone-time", + "id": "phone-time-example-radio-with-revealed-checkbox", "name": "phone-time", "legend": "Select preferred times of day", "checkboxes": [ { "value": "anytime", - "id": "anytime", + "id": "anytime-example-radio-with-revealed-checkbox", "label": { "text": "Anytime of day" } }, { "value": "morning", - "id": "morning", + "id": "morning-example-radio-with-revealed-checkbox", "label": { "text": "Morning" } }, { "value": "afternoon", - "id": "afternoon", + "id": "afternoon-example-radio-with-revealed-checkbox", "label": { "text": "Afternoon" } }, { "value": "evening", - "id": "evening", + "id": "evening-example-radio-with-revealed-checkbox", "label": { "text": "Evening" } diff --git a/src/components/radios/example-radios-with-revealed-radios-expanded.njk b/src/components/radios/example-radios-with-revealed-radios-expanded.njk index 01fcfafd73..35169e06b2 100644 --- a/src/components/radios/example-radios-with-revealed-radios-expanded.njk +++ b/src/components/radios/example-radios-with-revealed-radios-expanded.njk @@ -7,21 +7,21 @@ "borderless": true, "radios": [ { - "id": "post", + "id": "post-example-with-revealed-radio-expanded", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-with-revealed-radio-expanded", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-with-revealed-radio-expanded", "label": { "text": "By phone" }, @@ -29,34 +29,34 @@ "checked": true, "other": { "otherType": "radios", - "id": "phone-time", + "id": "phone-time-example-with-revealed-radio-expanded", "name": "phone-time", "legend": "Choose preferred time of day", "radios": [ { "value": "anytime", - "id": "anytime", + "id": "anytime-example-with-revealed-radio-expanded", "label": { "text": "Anytime of day" } }, { "value": "morning", - "id": "morning", + "id": "morning-example-with-revealed-radio-expanded", "label": { "text": "Morning" } }, { "value": "afternoon", - "id": "afternoon", + "id": "afternoon-example-with-revealed-radio-expanded", "label": { "text": "Afternoon" } }, { "value": "evening", - "id": "evening", + "id": "evening-example-with-revealed-radio-expanded", "label": { "text": "Evening" } @@ -66,4 +66,4 @@ } ] }) -}} \ No newline at end of file +}} diff --git a/src/components/radios/example-radios-with-revealed-radios.njk b/src/components/radios/example-radios-with-revealed-radios.njk index 516982b83f..fdc2fb490b 100644 --- a/src/components/radios/example-radios-with-revealed-radios.njk +++ b/src/components/radios/example-radios-with-revealed-radios.njk @@ -7,55 +7,55 @@ "borderless": true, "radios": [ { - "id": "post", + "id": "post-example-with-revealed-radio", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-with-revealed-radio", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-with-revealed-radio", "label": { "text": "By phone" }, "value": "phone", "other": { "otherType": "radios", - "id": "phone-time", + "id": "phone-time-example-with-revealed-radio", "name": "phone-time", "legend": "Choose preferred time of day", "radios": [ { "value": "anytime", - "id": "anytime", + "id": "anytime-example-with-revealed-radio", "label": { "text": "Anytime of day" } }, { "value": "morning", - "id": "morning", + "id": "morning-example-with-revealed-radio", "label": { "text": "Morning" } }, { "value": "afternoon", - "id": "afternoon", + "id": "afternoon-example-with-revealed-radio", "label": { "text": "Afternoon" } }, { "value": "evening", - "id": "evening", + "id": "evening-example-with-revealed-radio", "label": { "text": "Evening" } diff --git a/src/components/radios/example-radios-with-revealed-select-expanded.njk b/src/components/radios/example-radios-with-revealed-select-expanded.njk index 8a05843b8a..d2907b13bf 100644 --- a/src/components/radios/example-radios-with-revealed-select-expanded.njk +++ b/src/components/radios/example-radios-with-revealed-select-expanded.njk @@ -11,21 +11,21 @@ "name": "contact", "radios": [ { - "id": "post", + "id": "post-example-with-revealed-select-expanded", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-with-revealed-select-expanded", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-with-revealed-select-expanded", "label": { "text": "By phone" }, @@ -33,7 +33,7 @@ "checked": true, "other": { "otherType": "select", - "id": "phone-time", + "id": "phone-time-example-with-revealed-select-expanded", "name": "phone-time", "label": { "text": "Choose preferred time of day" @@ -67,4 +67,4 @@ ] }) }} -{% endcall %} \ No newline at end of file +{% endcall %} diff --git a/src/components/radios/example-radios-with-revealed-select.njk b/src/components/radios/example-radios-with-revealed-select.njk index 4a43b9fc32..5002990612 100644 --- a/src/components/radios/example-radios-with-revealed-select.njk +++ b/src/components/radios/example-radios-with-revealed-select.njk @@ -11,28 +11,28 @@ "name": "contact", "radios": [ { - "id": "post", + "id": "post-example-with-revealed-select", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-with-revealed-select", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-with-revealed-select", "label": { "text": "By phone" }, "value": "phone", "other": { "otherType": "select", - "id": "phone-time", + "id": "phone-time-example-with-revealed-select", "name": "phone-time", "label": { "text": "Choose preferred time of day" diff --git a/src/components/radios/example-radios-with-revealed-text-input-expanded.njk b/src/components/radios/example-radios-with-revealed-text-input-expanded.njk index d5b97bdeab..7428c017d7 100644 --- a/src/components/radios/example-radios-with-revealed-text-input-expanded.njk +++ b/src/components/radios/example-radios-with-revealed-text-input-expanded.njk @@ -12,63 +12,63 @@ "name": "travel", "radios": [ { - "id": "home", + "id": "home-example-radio-with-revealed-text-input-expanded", "label": { "text": "Work mainly from home" }, "value": "home" }, { - "id": "car", + "id": "car-example-radio-with-revealed-text-input-expanded", "label": { "text": "Car or van" }, "value": "car" }, { - "id": "underground", + "id": "underground-example-radio-with-revealed-text-input-expanded", "label": { "text": "Underground, metro, light rail or tram" }, "value": "underground" }, { - "id": "train", + "id": "train-example-radio-with-revealed-text-input-expanded", "label": { "text": "Train" }, "value": "train" }, { - "id": "bus", + "id": "bus-example-radio-with-revealed-text-input-expanded", "label": { "text": "Bus, minibus or coach" }, "value": "bus" }, { - "id": "bicycle", + "id": "bicycle-example-radio-with-revealed-text-input-expanded", "label": { "text": "Bicycle" }, "value": "bicycle" }, { - "id": "walk", + "id": "walk-example-radio-with-revealed-text-input-expanded", "label": { "text": "Walk" }, "value": "walk" }, { - "id": "other-radio", + "id": "other-radio-with-revealed-text-input-expanded", "label": { "text": "Other" }, "value": "other", "checked": true, "other": { - "id": "other-textbox", + "id": "other-textbox-example-radio-with-revealed-text-input-expanded", "name": "other-answer", "label": { "text": "Enter how you travel" diff --git a/src/components/radios/example-radios-with-revealed-text-input.njk b/src/components/radios/example-radios-with-revealed-text-input.njk index d6c1e64967..1f4353bb17 100644 --- a/src/components/radios/example-radios-with-revealed-text-input.njk +++ b/src/components/radios/example-radios-with-revealed-text-input.njk @@ -12,62 +12,62 @@ "name": "travel", "radios": [ { - "id": "home", + "id": "home-example-radio-with-revealed-text-input", "label": { "text": "Work mainly from home" }, "value": "home" }, { - "id": "car", + "id": "car-example-radio-with-revealed-text-input", "label": { "text": "Car or van" }, "value": "car" }, { - "id": "underground", + "id": "underground-example-radio-with-revealed-text-input", "label": { "text": "Underground, metro, light rail or tram" }, "value": "underground" }, { - "id": "train", + "id": "train-example-radio-with-revealed-text-input", "label": { "text": "Train" }, "value": "train" }, { - "id": "bus", + "id": "bus-example-radio-with-revealed-text-input", "label": { "text": "Bus, minibus or coach" }, "value": "bus" }, { - "id": "bicycle", + "id": "bicycle-example-radio-with-revealed-text-input", "label": { "text": "Bicycle" }, "value": "bicycle" }, { - "id": "walk", + "id": "walk-example-radio-with-revealed-text-input", "label": { "text": "Walk" }, "value": "walk" }, { - "id": "other-radio", + "id": "other-radio-example-radio-with-revealed-text-input", "label": { "text": "Other" }, "value": "other", "other": { - "id": "other-textbox", + "id": "other-textbox-example-radio-with-revealed-text-input", "name": "other-answer", "label": { "text": "Enter how you travel" diff --git a/src/components/radios/example-radios-with-visible-text-input.njk b/src/components/radios/example-radios-with-visible-text-input.njk index 00bd288f1d..a5904b628e 100644 --- a/src/components/radios/example-radios-with-visible-text-input.njk +++ b/src/components/radios/example-radios-with-visible-text-input.njk @@ -12,14 +12,14 @@ "name": "gender-identity", "radios": [ { - "id": "yes", + "id": "yes-example-radio-with-visible-text", "label": { "text": "Yes" }, "value": "yes" }, { - "id": "no", + "id": "no-example-radio-with-visible-text", "label": { "text": "No" }, @@ -27,7 +27,7 @@ "other": { "open": true, "otherType": "input", - "id": "no-textbox", + "id": "no-textbox-example-radio-with-visible-text", "name": "no-answer", "label": { "text": "Enter your gender identity" diff --git a/src/components/relationships/example-relationships-error.njk b/src/components/relationships/example-relationships-error.njk index 36b40918bd..25a3a8fe55 100644 --- a/src/components/relationships/example-relationships-error.njk +++ b/src/components/relationships/example-relationships-error.njk @@ -62,7 +62,7 @@ layout: ~ }, "radios": [ { - "id": "husband-wife", + "id": "husband-wife-example-relationships-error", "value": "husband-wife", "label": { "text": "Husband or wife" @@ -73,7 +73,7 @@ layout: ~ } }, { - "id": "civil-partner", + "id": "civil-partner-example-relationships-error", "value": "civil-partner", "label": { "text": "Legally registered civil partner" @@ -84,7 +84,7 @@ layout: ~ } }, { - "id": "partner", + "id": "partner-example-relationships-error", "value": "partner", "label": { "text": "Partner" @@ -95,7 +95,7 @@ layout: ~ } }, { - "id": "son-daughter", + "id": "son-daughter-example-relationships-error", "value": "son-daughter", "label": { "text": "Son or daughter" @@ -106,7 +106,7 @@ layout: ~ } }, { - "id": "stepchild", + "id": "stepchild-example-relationships-error", "value": "stepchild", "label": { "text": "Stepchild" @@ -117,7 +117,7 @@ layout: ~ } }, { - "id": "brother-sister", + "id": "brother-sister-example-relationships-error", "value": "brother-sister", "label": { "text": "Brother or sister" @@ -128,7 +128,7 @@ layout: ~ } }, { - "id": "stepbrother-stepsister", + "id": "stepbrother-stepsister-example-relationships-error", "value": "stepbrother-stepsister", "label": { "text": "Stepbrother or stepsister" @@ -139,7 +139,7 @@ layout: ~ } }, { - "id": "mother-father", + "id": "mother-father-example-relationships-error", "value": "mother-father", "label": { "text": "Mother or father" @@ -150,7 +150,7 @@ layout: ~ } }, { - "id": "stepmother-stepfather", + "id": "stepmother-stepfather-example-relationships-error", "value": "stepmother-stepfather", "label": { "text": "Stepmother or stepfather" @@ -161,7 +161,7 @@ layout: ~ } }, { - "id": "grandchild", + "id": "grandchild-example-relationships-error", "value": "grandchild", "label": { "text": "Grandchild" @@ -172,7 +172,7 @@ layout: ~ } }, { - "id": "grandparent", + "id": "grandparent-example-relationships-error", "value": "grandparent", "label": { "text": "Grandparent" @@ -183,7 +183,7 @@ layout: ~ } }, { - "id": "other-relation", + "id": "other-relation-example-relationships-error", "value": "other-relation", "label": { "text": "Other relation" @@ -194,7 +194,7 @@ layout: ~ } }, { - "id": "unrelated", + "id": "unrelated-example-relationships-error", "value": "unrelated", "label": { "text": "Unrelated", diff --git a/src/components/relationships/example-relationships-you.njk b/src/components/relationships/example-relationships-you.njk index 99b9489d08..41cc552113 100644 --- a/src/components/relationships/example-relationships-you.njk +++ b/src/components/relationships/example-relationships-you.njk @@ -38,7 +38,7 @@ layout: ~ "dontWrap": true, "radios": [ { - "id": "husband-wife", + "id": "husband-wife-example-relationships-you", "value": "husband-wife", "label": { "text": "Husband or wife" @@ -49,7 +49,7 @@ layout: ~ } }, { - "id": "civil-partner", + "id": "civil-partner-example-relationships-you", "value": "civil-partner", "label": { "text": "Legally registered civil partner" @@ -60,7 +60,7 @@ layout: ~ } }, { - "id": "partner", + "id": "partner-example-relationships-you", "value": "partner", "label": { "text": "Partner" @@ -71,7 +71,7 @@ layout: ~ } }, { - "id": "son-daughter", + "id": "son-daughter-example-relationships-you", "value": "son-daughter", "label": { "text": "Son or daughter" @@ -82,7 +82,7 @@ layout: ~ } }, { - "id": "stepchild", + "id": "stepchild-example-relationships-you", "value": "stepchild", "label": { "text": "Stepchild" @@ -93,7 +93,7 @@ layout: ~ } }, { - "id": "brother-sister", + "id": "brother-sister-example-relationships-you", "value": "brother-sister", "label": { "text": "Brother or sister" @@ -104,7 +104,7 @@ layout: ~ } }, { - "id": "stepbrother-stepsister", + "id": "stepbrother-stepsister-example-relationships-you", "value": "stepbrother-stepsister", "label": { "text": "Stepbrother or stepsister" @@ -115,7 +115,7 @@ layout: ~ } }, { - "id": "mother-father", + "id": "mother-father-example-relationships-you", "value": "mother-father", "label": { "text": "Mother or father" @@ -126,7 +126,7 @@ layout: ~ } }, { - "id": "stepmother-stepfather", + "id": "stepmother-stepfather-example-relationships-you", "value": "stepmother-stepfather", "label": { "text": "Stepmother or stepfather" @@ -137,7 +137,7 @@ layout: ~ } }, { - "id": "grandchild", + "id": "grandchild-example-relationships-you", "value": "grandchild", "label": { "text": "Grandchild" @@ -148,7 +148,7 @@ layout: ~ } }, { - "id": "grandparent", + "id": "grandparent-example-relationships-you", "value": "grandparent", "label": { "text": "Grandparent" @@ -159,7 +159,7 @@ layout: ~ } }, { - "id": "other-relation", + "id": "other-relation-example-relationships-you", "value": "other-relation", "label": { "text": "Other relation" @@ -170,7 +170,7 @@ layout: ~ } }, { - "id": "unrelated", + "id": "unrelated-example-relationships-you", "value": "unrelated", "label": { "text": "Unrelated", diff --git a/src/components/relationships/example-relationships.njk b/src/components/relationships/example-relationships.njk index 874e6f9de8..4e0566fca5 100644 --- a/src/components/relationships/example-relationships.njk +++ b/src/components/relationships/example-relationships.njk @@ -36,7 +36,7 @@ layout: ~ "dontWrap": true, "radios": [ { - "id": "husband-wife", + "id": "husband-wife-example-relationships", "value": "husband-wife", "label": { "text": "Husband or wife" @@ -47,7 +47,7 @@ layout: ~ } }, { - "id": "civil-partner", + "id": "civil-partner-example-relationships", "value": "civil-partner", "label": { "text": "Legally registered civil partner" @@ -58,7 +58,7 @@ layout: ~ } }, { - "id": "partner", + "id": "partner-example-relationships", "value": "partner", "label": { "text": "Partner" @@ -69,7 +69,7 @@ layout: ~ } }, { - "id": "son-daughter", + "id": "son-daughter-example-relationships", "value": "son-daughter", "label": { "text": "Son or daughter" @@ -80,7 +80,7 @@ layout: ~ } }, { - "id": "stepchild", + "id": "stepchild-example-relationships", "value": "stepchild", "label": { "text": "Stepchild" @@ -91,7 +91,7 @@ layout: ~ } }, { - "id": "brother-sister", + "id": "brother-sister-example-relationships", "value": "brother-sister", "label": { "text": "Brother or sister" @@ -102,7 +102,7 @@ layout: ~ } }, { - "id": "stepbrother-stepsister", + "id": "stepbrother-stepsister-example-relationships", "value": "stepbrother-stepsister", "label": { "text": "Stepbrother or stepsister" @@ -113,7 +113,7 @@ layout: ~ } }, { - "id": "mother-father", + "id": "mother-father-example-relationships", "value": "mother-father", "label": { "text": "Mother or father" @@ -124,7 +124,7 @@ layout: ~ } }, { - "id": "stepmother-stepfather", + "id": "stepmother-stepfather-example-relationships", "value": "stepmother-stepfather", "label": { "text": "Stepmother or stepfather" @@ -135,7 +135,7 @@ layout: ~ } }, { - "id": "grandchild", + "id": "grandchild-example-relationships", "value": "grandchild", "label": { "text": "Grandchild" @@ -146,7 +146,7 @@ layout: ~ } }, { - "id": "grandparent", + "id": "grandparent-example-relationships", "value": "grandparent", "label": { "text": "Grandparent" @@ -157,7 +157,7 @@ layout: ~ } }, { - "id": "other-relation", + "id": "other-relation-example-relationships", "value": "other-relation", "label": { "text": "Other relation" @@ -168,7 +168,7 @@ layout: ~ } }, { - "id": "unrelated", + "id": "unrelated-example-relationships", "value": "unrelated", "label": { "text": "Unrelated", diff --git a/src/components/select/example-select-with-error.njk b/src/components/select/example-select-with-error.njk index 7c024f1b34..a234b38592 100644 --- a/src/components/select/example-select-with-error.njk +++ b/src/components/select/example-select-with-error.njk @@ -2,7 +2,7 @@ {{ onsSelect({ - "id": "select", + "id": "select-example-with-error", "name": "select", "label": { "text": "Question topic" diff --git a/src/components/select/example-select-with-inline-label.njk b/src/components/select/example-select-with-inline-label.njk index db0668b379..16a123dfa6 100644 --- a/src/components/select/example-select-with-inline-label.njk +++ b/src/components/select/example-select-with-inline-label.njk @@ -1,7 +1,7 @@ {% from "components/select/_macro.njk" import onsSelect %} {{ onsSelect({ - "id": "select", + "id": "select-example-with-inline-label", "name": "select", "classes": "ons-u-wa--@xxs", "label": { diff --git a/src/components/select/example-select.njk b/src/components/select/example-select.njk index 92821fbbd5..69327f3352 100644 --- a/src/components/select/example-select.njk +++ b/src/components/select/example-select.njk @@ -1,7 +1,7 @@ {% from "components/select/_macro.njk" import onsSelect %} {{ onsSelect({ - "id": "select", + "id": "select-example", "name": "select", "label": { "text": "Question topic" diff --git a/src/components/textarea/example-textarea-error.njk b/src/components/textarea/example-textarea-error.njk index 52e61a5de3..8b343f3b53 100644 --- a/src/components/textarea/example-textarea-error.njk +++ b/src/components/textarea/example-textarea-error.njk @@ -2,7 +2,7 @@ {{ onsTextarea({ - "id": "textarea", + "id": "textarea-error", "name": "feedback", "label": { "text": "Please provide some feedback", diff --git a/src/components/upload/example-upload-error.njk b/src/components/upload/example-upload-error.njk index ebc2007429..07208aecce 100644 --- a/src/components/upload/example-upload-error.njk +++ b/src/components/upload/example-upload-error.njk @@ -2,7 +2,7 @@ {{ onsUpload({ - "id": "file", + "id": "file-example-upload-error", "accept": ".xls,.xlsx,.pdf", "label": { "description": "File types accepted are XLS and XLSX or PDF", diff --git a/src/components/upload/example-upload.njk b/src/components/upload/example-upload.njk index 67335534a3..7da43036e0 100644 --- a/src/components/upload/example-upload.njk +++ b/src/components/upload/example-upload.njk @@ -2,7 +2,7 @@ {{ onsUpload({ - "id": "file", + "id": "file-example-upload", "accept": ".xls,.xlsx,.pdf", "label": { "description": "File types accepted are XLS and XLSX or PDF", diff --git a/src/patterns/addresses/example-address-input-manual-error.njk b/src/patterns/addresses/example-address-input-manual-error.njk index 559f1763a6..16bba519c5 100644 --- a/src/patterns/addresses/example-address-input-manual-error.njk +++ b/src/patterns/addresses/example-address-input-manual-error.njk @@ -48,12 +48,12 @@ layout: ~
{{ onsAddressInput({ - "id": "address", + "id": "address-input-manual-error-example", "dontWrap": true, "manualEntry": true, "label": { "text": "Enter address or postcode and select from results", - "id": "address-label" + "id": "address-label-input-manual-error" }, "line1": { "label": "Address line 1", diff --git a/src/patterns/addresses/example-address-input-manual.njk b/src/patterns/addresses/example-address-input-manual.njk index 93280b62fd..c69cbdc401 100644 --- a/src/patterns/addresses/example-address-input-manual.njk +++ b/src/patterns/addresses/example-address-input-manual.njk @@ -22,12 +22,12 @@ layout: ~ {{ onsAddressInput({ - "id": "address", + "id": "address-input-manual-example", "dontWrap": true, "manualEntry": true, "label": { "text": "Enter address or postcode and select from results", - "id": "address-label" + "id": "address-label-input-manual-pattern" }, "line1": { "label": "Address line 1" diff --git a/src/patterns/addresses/example-address-input-non-editable.njk b/src/patterns/addresses/example-address-input-non-editable.njk index 9ec2cf2f27..7d5fc26b19 100644 --- a/src/patterns/addresses/example-address-input-non-editable.njk +++ b/src/patterns/addresses/example-address-input-non-editable.njk @@ -23,11 +23,11 @@ layout: ~ {{ onsAddressInput({ - "id": "address", + "id": "address-input-non-editable", "dontWrap": true, "label": { "text": "Enter address or postcode and select from results", - "id": "address-label" + "id": "address-label-input-non-editable" }, "isEditable": false, "mandatory": true, diff --git a/src/patterns/addresses/example-address-input.njk b/src/patterns/addresses/example-address-input.njk index 206c0fc302..3cb95033ec 100644 --- a/src/patterns/addresses/example-address-input.njk +++ b/src/patterns/addresses/example-address-input.njk @@ -22,11 +22,11 @@ layout: ~ {{ onsAddressInput({ - "id": "address", + "id": "address-input-pattern", "dontWrap": true, "label": { "text": "Enter address or postcode and select from results", - "id": "address-label" + "id": "address-label-input-pattern" }, "isEditable": true, "mandatory": true, diff --git a/src/patterns/correct-errors/example-errors-proto-errors.njk b/src/patterns/correct-errors/example-errors-proto-errors.njk index 1e4ea6bfc0..3f46bd9529 100644 --- a/src/patterns/correct-errors/example-errors-proto-errors.njk +++ b/src/patterns/correct-errors/example-errors-proto-errors.njk @@ -109,7 +109,7 @@ layout: ~ {{ onsInput({ "type": "number", - "id": "number", + "id": "number-example-proto-errors", "width": "5", "fieldClasses": "ons-question__answer", "label": { @@ -125,7 +125,7 @@ layout: ~ {{ onsInput({ "type": "number", - "id": "number-input", + "id": "number-input-example-proto-errors", "width": "3", "fieldClasses": "ons-question__answer", "value": "110", @@ -149,7 +149,7 @@ layout: ~ "legend": "Date of birth", "description": "For example, 31 3 1980", "legendOrLabel": "Date of birth", - "id": "dates", + "id": "dates-example-proto-error", "day": { "label": { "text": "Day" @@ -194,28 +194,28 @@ layout: ~ }, "radios": [ { - "id": "post", + "id": "post-example-proto-error", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-proto-error", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-proto-error", "label": { "text": "By phone" }, "value": "phone", "other": { "otherType": "select", - "id": "phone-time", + "id": "phone-time-example-proto-error", "name": "phone-time", "label": { "text": "Choose preferred time of day" @@ -262,34 +262,34 @@ layout: ~ }, "checkboxes": [ { - "id": "gas", + "id": "gas-example-proto-error", "label": { "text": "Gas" }, "value": "gas" }, { - "id": "electric", + "id": "electric-example-proto-error", "label": { "text": "Electric" }, "value": "electric" }, { - "id": "solid-fuel", + "id": "solid-fuel-example-proto-error", "label": { "text": "Solid fuel" }, "value": "solid-fuel" }, { - "id": "other-fuel", + "id": "other-fuel-proto-errors", "label": { "text": "Other" }, "value": "other", "other": { - "id": "other-fuel-textbox", + "id": "other-fuel-textbox-proto-errors", "name": "other-fuel-answer", "label": { "text": "Enter type of central heating" @@ -317,7 +317,7 @@ layout: ~ {{ onsPassword({ - "id": "password", + "id": "password-example-proto-error", "label": { "text": "Password" }, @@ -331,7 +331,7 @@ layout: ~ {{ onsInput({ - "id": "email-address-input", + "id": "email-address-input-example-proto-error", "type": "email", "value": "name.com", "label": { @@ -341,7 +341,7 @@ layout: ~ "legendClasses": "ons-u-vh", "error": { "text": "Enter an email address in a valid format, for example, name@example.com", - "id": "email-error" + "id": "email-error-example-proto-error" }, "mutuallyExclusive": { "or": "Or", @@ -350,7 +350,7 @@ layout: ~ "deselectExclusiveOptionAdjective": "deselected", "exclusiveOptions": [ { - "id": "email-checkbox", + "id": "email-checkbox-example-proto-error", "name": "no-email", "value": "no-email", "label": { @@ -365,26 +365,26 @@ layout: ~ {{ onsDuration({ "legendOrLabel": "Duration", - "id": "address-duration", + "id": "address-duration-errors", "error": { "text": "Enter a number that is less than 60", "id": "duration-error" }, "field1": { - "id": "address-duration-hours", + "id": "address-duration-hours-errors", "name": "address-duration-hours", "suffix": { "text": "Hours", - "id": "address-duration-hours-suffix" + "id": "address-duration-hours-suffix-errors" }, "value": "2" }, "field2": { - "id": "address-duration-minutes", + "id": "address-duration-minutes-errors", "name": "address-duration-minutes", "suffix": { "text": "Minutes", - "id": "address-duration-mins-suffix" + "id": "address-duration-mins-suffix-errors" }, "value": "60", "error": true diff --git a/src/patterns/correct-errors/example-errors-proto.njk b/src/patterns/correct-errors/example-errors-proto.njk index 8ad0576de3..1b5ec4c2b9 100644 --- a/src/patterns/correct-errors/example-errors-proto.njk +++ b/src/patterns/correct-errors/example-errors-proto.njk @@ -54,7 +54,7 @@ layout: ~ }) %} {{ onsInput({ - "id": "number", + "id": "number-example-errors-proto", "type": "number", "fieldClasses": "ons-question__answer", "width": "5", @@ -69,7 +69,7 @@ layout: ~ {{ onsInput({ - "id": "suffixed", + "id": "suffixed-example-errors-proto", "type": "number", "fieldClasses": "ons-question__answer", "width": "3", @@ -126,28 +126,28 @@ layout: ~ "name": "contact-preference", "radios": [ { - "id": "post", + "id": "post-example-errors-proto", "label": { "text": "By post" }, "value": "post" }, { - "id": "email", + "id": "email-example-errors-proto", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone", + "id": "phone-example-errors-proto", "label": { "text": "By phone" }, "value": "phone", "other": { "otherType": "select", - "id": "phone-time", + "id": "phone-time-example-errors-proto", "name": "phone-time", "label": { "text": "Choose preferred time of day" @@ -190,34 +190,34 @@ layout: ~ "name": "mutually-exclusive", "checkboxes": [ { - "id": "gas", + "id": "gas-example-errors-proto", "label": { "text": "Gas" }, "value": "gas" }, { - "id": "electric", + "id": "electric-example-errors-proto", "label": { "text": "Electric" }, "value": "electric" }, { - "id": "solid-fuel", + "id": "solid-fuel-example-errors-proto", "label": { "text": "Solid fuel" }, "value": "solid-fuel" }, { - "id": "other-fuel", + "id": "other-fuel-example-errors-proto", "label": { "text": "Other" }, "value": "other", "other": { - "id": "other-fuel-textbox", + "id": "other-fuel-textbox-example-errors-proto", "name": "other-fuel-answer", "label": { "text": "Enter type of central heating" @@ -245,7 +245,7 @@ layout: ~ {{ onsPassword({ - "id": "password", + "id": "password-example-errors-proto", "label": { "text": "Password" }, @@ -255,7 +255,7 @@ layout: ~ {{ onsInput({ - "id": "email-address-input", + "id": "email-address-input-example-errors-proto", "type": "email", "value": "name.com", "label": { @@ -285,22 +285,22 @@ layout: ~ {{ onsDuration({ "legendOrLabel": "Duration", - "id": "address-duration", + "id": "address-duration-correct-errors-pattern", "field1": { - "id": "address-duration-hours", + "id": "address-duration-hours-correct-errors-pattern", "name": "address-duration-hours", "suffix": { "text": "Hours", - "id": "address-duration-hours-suffix" + "id": "address-duration-hours-suffix-correct-errors-pattern" }, "value": "2" }, "field2": { - "id": "address-duration-minutes", + "id": "address-duration-minutes-correct-errors-pattern", "name": "address-duration-minutes", "suffix": { "text": "Minutes", - "id": "address-duration-mins-suffix" + "id": "address-duration-mins-suffix-correct-errors-pattern" }, "value": "60" } @@ -313,21 +313,21 @@ layout: ~ "name": "food-other", "radios": [ { - "id": "bacon-other", + "id": "bacon-other-example-errors-proto", "label": { "text": "Bacon" }, "value": "bacon" }, { - "id": "olives-other", + "id": "olives-other-example-errors-proto", "label": { "text": "Olives" }, "value": "olives" }, { - "id": "pepperoni-other", + "id": "pepperoni-othe-example-errors-protor", "label": { "text": "Pepperoni" }, diff --git a/src/patterns/feedback/example-feedback-form-errors.njk b/src/patterns/feedback/example-feedback-form-errors.njk index 703f97c489..b183bc3e38 100644 --- a/src/patterns/feedback/example-feedback-form-errors.njk +++ b/src/patterns/feedback/example-feedback-form-errors.njk @@ -19,7 +19,7 @@ layout: ~ "itemsList": [ { "url": '/', - "id": "back", + "id": "back-example-feedback-form-error", "text": 'Back', "attributes": { "data-attribute": "Example attribute" @@ -69,12 +69,12 @@ layout: ~ "legend": "Select what your feedback is about", "name": "feedback-type", "error": { - "id": "feedback-type", + "id": "feedback-type-example-feedback-form", "text": "Select what question topic your feedback is about" }, "radios": [ { - "id": "questions", + "id": "questions-example-feedback-form-error", "label": { "text": "The questions", "description": "For example, questions not clear, answer options not relevant" @@ -83,7 +83,7 @@ layout: ~ "checked": true, "other": { "otherType": "select", - "id": "other-select", + "id": "other-select-feedback-form-errors", "classes": "ons-input--block", "name": "topic", "label": { @@ -132,14 +132,14 @@ layout: ~ } }, { - "id": "design", + "id": "design-example-feedback-form", "label": { "text": "Page design and structure" }, "value": "design" }, { - "id": "general", + "id": "general-example-feedback-form", "label": { "text": "General feedback about this service" }, @@ -150,7 +150,7 @@ layout: ~ }} {{ onsTextarea({ - "id": "feedback-textarea", + "id": "feedback-textarea-example-feedback-form", "name": "feedback-text", "width": "30", "label": { @@ -163,7 +163,7 @@ layout: ~ "charCountPlural": "You have {x} characters remaining" }, "error": { - "id": "feedback-content", + "id": "feedback-content-example-feedback-form", "text": "Enter your feedback" } }) diff --git a/src/patterns/feedback/example-feedback-form.njk b/src/patterns/feedback/example-feedback-form.njk index fdb213e3e2..301f82a803 100644 --- a/src/patterns/feedback/example-feedback-form.njk +++ b/src/patterns/feedback/example-feedback-form.njk @@ -17,7 +17,7 @@ layout: ~ "itemsList": [ { "url": '/', - "id": "back", + "id": "back-example-feedback-form", "text": 'Back', "attributes": { "data-attribute": "Example attribute" @@ -37,7 +37,7 @@ layout: ~ "name": "feedback-type", "radios": [ { - "id": "questions", + "id": "questions-example-feedback-form", "label": { "text": "The questions", "description": "For example, questions not clear, answer options not relevant" @@ -45,7 +45,7 @@ layout: ~ "value": "questions", "other": { "otherType": "select", - "id": "other-select", + "id": "other-select-feedback-form", "classes": "ons-input--block", "name": "topic", "label": { @@ -94,14 +94,14 @@ layout: ~ } }, { - "id": "design", + "id": "design-example-feedback-form", "label": { "text": "Page design and structure" }, "value": "design" }, { - "id": "general", + "id": "general-example-feedback-form", "label": { "text": "General feedback about this service" }, @@ -112,7 +112,7 @@ layout: ~ }} {{ onsTextarea({ - "id": "feedback-textarea", + "id": "feedback-textarea-example-feedback-form", "name": "feedback-text", "width": "30", "label": { diff --git a/src/patterns/hub-and-spoke/example-spoke-continue.njk b/src/patterns/hub-and-spoke/example-spoke-continue.njk index 903846e212..a1c923d77c 100644 --- a/src/patterns/hub-and-spoke/example-spoke-continue.njk +++ b/src/patterns/hub-and-spoke/example-spoke-continue.njk @@ -42,7 +42,7 @@ layout: ~ }) %} {{ onsDateInput({ - "id": "date", + "id": "date-input", "dontWrap": true, "day": { "label": { diff --git a/src/patterns/input-email-with-error/example-input-email-with-error.njk b/src/patterns/input-email-with-error/example-input-email-with-error.njk index 515d0c37f9..d795f029c2 100644 --- a/src/patterns/input-email-with-error/example-input-email-with-error.njk +++ b/src/patterns/input-email-with-error/example-input-email-with-error.njk @@ -1,7 +1,7 @@ {% from "components/input/_macro.njk" import onsInput %} {{ onsInput({ - "id": "email", + "id": "email-example-input-email-with-error", "type": "email", "autocomplete": "email", "value": "name.com", @@ -10,7 +10,7 @@ "description": "This will not be stored and only used once to send your confirmation" }, "error": { - "id": "email-error", + "id": "email-error-example-input-email-with-error", "text": "Enter an email address in a valid format, for example, name@example.com" } }) diff --git a/src/patterns/phone-numbers/example-phone-number-error.njk b/src/patterns/phone-numbers/example-phone-number-error.njk index ca6b403d50..9667fd2cdf 100644 --- a/src/patterns/phone-numbers/example-phone-number-error.njk +++ b/src/patterns/phone-numbers/example-phone-number-error.njk @@ -1,7 +1,7 @@ {% from "components/input/_macro.njk" import onsInput %} {{ onsInput({ - "id": "tel", + "id": "tel-example-phone-number-error", "width": "15", "type": "tel", "autocomplete": "tel", @@ -11,7 +11,7 @@ "description": "This will not be stored and only used once to send the access code" }, "error": { - "id": "email-error", + "id": "email-error-example-phone-number-error", "text": "Enter a UK mobile number in a valid format, for example, 07700 912345 or +44 7700 912345" } }) diff --git a/src/patterns/question/example-question-anatomy.njk b/src/patterns/question/example-question-anatomy.njk index 701aca8ea4..c7c16d4f58 100644 --- a/src/patterns/question/example-question-anatomy.njk +++ b/src/patterns/question/example-question-anatomy.njk @@ -123,7 +123,7 @@ noTabs: true {{ onsRadios({ - "id": "number-of-employees", + "id": "number-of-employees-example-question-anatomy", "name": "number-of-employees", "legend": "On 1 May 2021, what was the number of employees for Bolt and Ratchet?", "legendClasses": "ons-u-vh", diff --git a/src/patterns/send-a-web-form/example-errors.njk b/src/patterns/send-a-web-form/example-errors.njk index 1c5919369d..8abd29e9e3 100644 --- a/src/patterns/send-a-web-form/example-errors.njk +++ b/src/patterns/send-a-web-form/example-errors.njk @@ -20,7 +20,7 @@ layout: ~ "itemsList": [ { "url": '#0', - "id": 'back', + "id": 'back-example-form-error', "text": 'Back' } ] @@ -77,42 +77,42 @@ layout: ~ "name": 'webform-help', "radios": [ { - "id": 'change-contact-details', + "id": 'change-contact-details-example-form-error', "label": { "text": 'I need to change my contact details' }, "value": 'change-contact-details' }, { - "id": 'help-with-my-survey', + "id": 'help-with-my-survey-example-form-error', "label": { "text": 'I need help with my survey' }, "value": 'help-with-my-survey' }, { - "id": 'complaint', + "id": 'complaint-example-form-error', "label": { "text": 'I want to make a complaint' }, "value": 'complaint' }, { - "id": 'technical-difficulties', + "id": 'technical-difficulties-example-form-error', "label": { "text": 'I am having technical difficulties' }, "value": 'technical-difficulties' }, { - "id": 'change-password', + "id": 'change-password-example-form-error', "label": { "text": 'I need to change my password' }, "value": 'change-password' }, { - "id": 'something-else', + "id": 'something-else-example-form-error', "label": { "text": 'Something else' }, @@ -127,7 +127,7 @@ layout: ~ {{ onsTextarea({ "name": 'webform-detail', - "id": 'webform-detail', + "id": 'webform-detail-example-form-error', "label": { "text": 'Please provide more detail' }, @@ -147,7 +147,7 @@ layout: ~ {{ onsInput({ "width": '30', "name": 'webform-name', - "id": 'webform-name', + "id": 'webform-name-example-form-error', "label": { "text": 'Name' }, @@ -160,7 +160,7 @@ layout: ~ {{ onsInput({ "width": '30', "name": 'webform-email', - "id": 'webform-email', + "id": 'webform-email-example-form-error', "type": 'email', "autocomplete": 'email', "label": { diff --git a/src/patterns/send-a-web-form/example-form.njk b/src/patterns/send-a-web-form/example-form.njk index 8d619c44e4..15e10d0996 100644 --- a/src/patterns/send-a-web-form/example-form.njk +++ b/src/patterns/send-a-web-form/example-form.njk @@ -17,7 +17,7 @@ layout: ~ "itemsList": [ { "url": '#0', - "id": 'back', + "id": 'back-link-for-web-form', "text": 'Back' } ] @@ -33,42 +33,42 @@ layout: ~ "name": 'webform-help', "radios": [ { - "id": 'change-contact-details', + "id": 'change-contact-details-example-form', "label": { "text": 'I need to change my contact details' }, "value": 'change-contact-details' }, { - "id": 'help-with-my-survey', + "id": 'help-with-my-survey-example-form', "label": { "text": 'I need help with my survey' }, "value": 'help-with-my-survey' }, { - "id": 'complaint', + "id": 'complaint-example-form', "label": { "text": 'I want to make a complaint' }, "value": 'complaint' }, { - "id": 'technical-difficulties', + "id": 'technical-difficulties-example-form', "label": { "text": 'I am having technical difficulties' }, "value": 'technical-difficulties' }, { - "id": 'change-password', + "id": 'change-password-example-form', "label": { "text": 'I need to change my password' }, "value": 'change-password' }, { - "id": 'something-else', + "id": 'something-else-example-form', "label": { "text": 'Something else' }, @@ -78,7 +78,7 @@ layout: ~ }) }} {{ onsTextarea({ - "id": 'webform-detail', + "id": 'webform-detail-example-form', "name": 'webform-detail', "label": { "text": 'Please provide more detail' @@ -94,7 +94,7 @@ layout: ~ {{ onsInput({ "width": '30', - "id": 'webform-name', + "id": 'webform-name-example-form', "name": 'webform-name', "label": { "text": 'Name' @@ -103,7 +103,7 @@ layout: ~ {{ onsInput({ "width": '30', - "id": 'webform-email', + "id": 'webform-email-example-form', "name": 'webform-email', "type": 'email', "autocomplete": 'email', diff --git a/src/patterns/send-a-web-form/example-success.njk b/src/patterns/send-a-web-form/example-success.njk index 3694ebb40f..dfe0a23207 100644 --- a/src/patterns/send-a-web-form/example-success.njk +++ b/src/patterns/send-a-web-form/example-success.njk @@ -17,7 +17,7 @@ layout: ~ onsPanel({ "classes": 'ons-u-mb-m', "type": 'success', - "id": 'webform-success', + "id": 'webform-success-example', "iconType": 'check', "iconSize": 'xl', "body": '

Thank you for contacting us

Your message has been sent.

' diff --git a/src/patterns/send-and-reply-to-messages/example-conversation.njk b/src/patterns/send-and-reply-to-messages/example-conversation.njk index d4af1729e4..3b1d2d4933 100644 --- a/src/patterns/send-and-reply-to-messages/example-conversation.njk +++ b/src/patterns/send-and-reply-to-messages/example-conversation.njk @@ -101,7 +101,7 @@ {{ onsReply({ "textarea": { - "id": "reply", + "id": "reply-example-conversation", "name": "reply", "label": { "text": "Reply", diff --git a/src/patterns/send-and-reply-to-messages/example-message-list.njk b/src/patterns/send-and-reply-to-messages/example-message-list.njk index 8669459512..3e42673524 100644 --- a/src/patterns/send-and-reply-to-messages/example-message-list.njk +++ b/src/patterns/send-and-reply-to-messages/example-message-list.njk @@ -11,7 +11,7 @@ "ariaLabelMsg": "Message preview", "messages": [ { - "id": "message1", + "id": "message-list-example-1", "unread": true, "url": "#0", "subject": "BRES 2016 survey response query", @@ -20,7 +20,7 @@ "body": "Hi Jacky. Thanks for that information. Your figures have allowed us to create more accurate…" }, { - "id": "message2", + "id": "message-list-example-2", "url": "#0", "subject": "BRES 2015 Enquiry on data", "fromText": "Jacky Turner",