From 964e88f97c4bb3ad8add1d597832cfd2f51025aa Mon Sep 17 00:00:00 2001 From: Oliver Byford Date: Mon, 23 May 2022 14:08:34 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: EoinShaughnessy <72507742+EoinShaughnessy@users.noreply.github.com> --- CHANGELOG.md | 2 +- src/govuk/components/checkboxes/checkboxes.yaml | 2 +- src/govuk/components/radios/radios.yaml | 2 +- src/govuk/components/select/select.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b06c2e7c65..1da2cb2d8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ When using the `govukCheckboxes` Nunjucks macro, you can now use the `values` option to indicate which checkboxes should be checked when the page loads. -For example, `value: ['red', 'blue']` would check any checkboxes that have a `value` of 'red' or 'blue'. +For example, `values: ['red', 'blue']` would check any checkboxes that have a `value` of 'red' or 'blue'. This is an alternative to setting the boolean `checked` option on each individual checkbox. diff --git a/src/govuk/components/checkboxes/checkboxes.yaml b/src/govuk/components/checkboxes/checkboxes.yaml index db7b309a87..9c648f93df 100644 --- a/src/govuk/components/checkboxes/checkboxes.yaml +++ b/src/govuk/components/checkboxes/checkboxes.yaml @@ -101,7 +101,7 @@ params: - name: values type: array required: false - description: Array of values for checkboxes which should be checked when the page loads. This can be used as an alternative to setting the `checked` option on each individual item. + description: Array of values for checkboxes which should be checked when the page loads. Use this as an alternative to setting the `checked` option on each individual item. - name: classes type: string required: false diff --git a/src/govuk/components/radios/radios.yaml b/src/govuk/components/radios/radios.yaml index f6558ad94a..af3856023b 100644 --- a/src/govuk/components/radios/radios.yaml +++ b/src/govuk/components/radios/radios.yaml @@ -89,7 +89,7 @@ params: - name: value type: string required: false - description: The value for the radio which should be checked when the page loads. This can be used as an alternative to setting the `checked` option on each individual item. + description: The value for the radio which should be checked when the page loads. Use this as an alternative to setting the `checked` option on each individual item. - name: classes type: string required: false diff --git a/src/govuk/components/select/select.yaml b/src/govuk/components/select/select.yaml index a13542e0fb..60bf9570f5 100644 --- a/src/govuk/components/select/select.yaml +++ b/src/govuk/components/select/select.yaml @@ -35,7 +35,7 @@ params: - name: value type: string required: false - description: Value for the option which should be selected. This can be used as an alternative to setting the `selected` option on each individual item. + description: Value for the option which should be selected. Use this as an alternative to setting the `selected` option on each individual item. - name: describedBy type: string required: false