diff --git a/src/govuk/components/checkboxes/__snapshots__/template.test.js.snap b/src/govuk/components/checkboxes/__snapshots__/template.test.js.snap index e877b82de6..1f410705f4 100644 --- a/src/govuk/components/checkboxes/__snapshots__/template.test.js.snap +++ b/src/govuk/components/checkboxes/__snapshots__/template.test.js.snap @@ -6,6 +6,9 @@ exports[`Checkboxes nested dependant components passes through fieldset params w data-attribute="value" data-second-attribute="second-value" > + + What is your nationality? + `; diff --git a/src/govuk/components/checkboxes/checkboxes.yaml b/src/govuk/components/checkboxes/checkboxes.yaml index aef58c6fcf..58526709ee 100644 --- a/src/govuk/components/checkboxes/checkboxes.yaml +++ b/src/govuk/components/checkboxes/checkboxes.yaml @@ -658,7 +658,8 @@ examples: text: Hint for british option here - value: irish text: Irish - - hint: + - value: other + hint: text: Hint for other option here - name: with error message and hint hidden: true @@ -710,9 +711,9 @@ examples: name: example-name errorMessage: text: Please select an option - legend: - text: What is your nationality? fieldset: + legend: + text: What is your nationality? classes: app-fieldset--custom-modifier attributes: data-attribute: value diff --git a/src/govuk/components/select/select.yaml b/src/govuk/components/select/select.yaml index 0865c9ec39..f1e07cf801 100644 --- a/src/govuk/components/select/select.yaml +++ b/src/govuk/components/select/select.yaml @@ -205,11 +205,13 @@ examples: items: - text: Option 1 + value: 1 attributes: data-attribute: ABC data-second-attribute: DEF - text: Option 2 + value: 2 attributes: data-attribute: GHI data-second-attribute: JKL @@ -221,11 +223,13 @@ examples: items: - text: Option 1 + value: 1 - null - false - "" - text: Options 2 + value: 2 - name: hint hidden: true data: