Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: EoinShaughnessy <72507742+EoinShaughnessy@users.noreply.github.com>
  • Loading branch information
36degrees and EoinShaughnessy authored May 23, 2022
1 parent 0456000 commit 964e88f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/govuk/components/checkboxes/checkboxes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/govuk/components/radios/radios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/govuk/components/select/select.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 964e88f

Please sign in to comment.