Skip to content

Add smaller versions of radio buttons and checkboxes#289

Merged
colinrotherham merged 7 commits intomainfrom
small-form-controls
Oct 27, 2025
Merged

Add smaller versions of radio buttons and checkboxes#289
colinrotherham merged 7 commits intomainfrom
small-form-controls

Conversation

@colinrotherham
Copy link
Collaborator

@colinrotherham colinrotherham commented Oct 15, 2025

This PR adds support for small form controls from NHS.UK frontend v10.1.0

- <Radios>
+ <Radios small>
    <Radios.Item value="yes">Yes</Radios.Item>
    <Radios.Item value="no">No</Radios.Item>
  </Radios>
- <Checkboxes>
+ <Checkboxes small>
    <Checkboxes.Item value="british">British</Checkboxes.Item>
    <Checkboxes.Item value="irish">Irish</Checkboxes.Item>
    <Checkboxes.Item value="other">
      Citizen of another country
    </Checkboxes.Item>
  </Checkboxes>
Small form controls

@colinrotherham colinrotherham force-pushed the small-form-controls branch 2 times, most recently from 69cbd2b to 2110213 Compare October 16, 2025 15:55
@colinrotherham colinrotherham changed the base branch from main to storybook-args October 16, 2025 16:07
Base automatically changed from storybook-args to main October 27, 2025 10:12
@sonarqubecloud
Copy link


const { container } = await renderClient(
<CharacterCount formGroupProps={{ ref: groupRef }} ref={fieldRef} />,
<CharacterCount formGroupProps={{ ref: groupRef }} ref={fieldRef} maxLength={200} />,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems unrelated but it was necessary for the NHS.UK frontend v10.1 update for smaller radios/checkboxes. Character counts now validate their minimum required config

@colinrotherham colinrotherham added this pull request to the merge queue Oct 27, 2025
Merged via the queue into main with commit 97f19db Oct 27, 2025
3 checks passed
@colinrotherham colinrotherham deleted the small-form-controls branch October 27, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments