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

Update the guidance on when to use the checkboxes component #4059

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Pablo-MHCLG
Copy link

The guidance currently says you can use the component when you need to help users toggle a single option on or off. For these cases, it would be better to use 2 radios with yes/no or on/off because it makes users deliberately choose the option they want. Otherwise, there's the risk that users miss the single checkbox on the page and end up not selecting something they might have had selected if the page was using radio buttons.

The guidance currently says you can use the component when you need to help users toggle a single option on or off. For these cases, it would be better to use 2 radios with yes/no or on/off because it makes users deliberately choose the option they want. Otherwise, there's the risk that users miss the single checkbox on the page and end up not selecting something they might have had selected if the page was using radio buttons.
Copy link

netlify bot commented Aug 20, 2024

You can preview this change here:

Built without sensitive environment variables

Name Link
🔨 Latest commit 4ca1e4c
🔍 Latest deploy log https://app.netlify.com/sites/govuk-design-system-preview/deploys/66c4c4f637d35100080184cf
😎 Deploy Preview https://deploy-preview-4059--govuk-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@romaricpascal
Copy link
Member

@CharlotteDowns @Ciandelle @hazalarpalikli @mia-allers-gds I think this change needs more of a design review than a tech one. Would any of you be able to have a look, please?

@Pablo-MHCLG
Copy link
Author

Pablo-MHCLG commented Sep 30, 2024 via email

@mia-allers-gds
Copy link

@romaricpascal @Pablo-MHCLG I think this update makes sense from a usability and a guidance perspective. I'm wondering if we could add another line to the proposed guidance explaining why a radio button is better than a single checkbox? The explanation provided in this PR makes sense to me and would give the user some helpful context

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.

3 participants