Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify docs for radio and checkbox conditionals #3552

Merged
merged 1 commit into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/govuk/components/checkboxes/checkboxes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ params:
required: false
description: Whether the checkbox should be checked when the page loads. Takes precedence over the top-level `values` option.
- name: conditional
type: boolean
required: false
description: If `true`, content provided will be revealed when the item is checked.
- name: conditional.html
type: string
type: object
required: false
description: Provide content for the conditional reveal.
description: Provide additional content to reveal when the checkbox is checked.
params:
- name: html
type: string
description: The HTML to reveal when the checkbox is checked
- name: behaviour
type: string
required: false
Expand Down
12 changes: 6 additions & 6 deletions src/govuk/components/radios/radios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ params:
required: false
description: Whether the radio should be checked when the page loads. Takes precedence over the top-level `value` option.
- name: conditional
type: string
required: false
description: If `true`, content provided will be revealed when the item is checked.
- name: conditional.html
type: html
type: object
required: false
description: Provide content for the conditional reveal.
description: Provide additional content to reveal when the radio is checked.
params:
- name: html
type: string
description: The HTML to reveal when the radio is checked
- name: disabled
type: boolean
required: false
Expand Down