-
Notifications
You must be signed in to change notification settings - Fork 226
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
Document / Implement Radio 'selected' value #1422
Comments
@andrewcharnley Hi Andrew. If you pass in Incidentally, if you're wanting to check which options the Nunjucks macro supports, there's a "Nunjucks macro options" details link within the Nunjucks tabs on the Design System website, which reveals a table describing them all. (I often forget this too, as it's slightly hidden) |
Checked... yes I should have checked that. :) Missed that link entirely. It would be good to add checked=true into the documentation example item[0], no harm and I assume most will need it. Thanks! |
Thanks @frankieroberto!
We wouldn't do this for the default example as it contradicts our guidance which says:
I can see how it'd be useful to show how to select a radio that the user previously chose (for example if returning to the page later, or if displaying an error summary) but if we were going to do that I think we'd need to describe this in the guidance and provide a separate example. |
I'm doing both, the first is the wish of the UX, who I'll happily wind up tomorrow morning with that paragraph. Thanks for the prompt reply all! |
@andrewcharnley I've linked to your comment about missing the link for the Nunjucks options table as it's useful for us to know when we consider how to improve the presentation of this content to users. If you feel that I've misrepresented your comment in any way or you'd like to add anything else feel free to comment on that card. As your issue was resolved I'm going to close this issue. |
Re: https://design-system.service.gov.uk/components/radios/
There's nothing here about pre-selecting a radio button on the above.
I attempted to use selected:true on one of the items as is the logic for the select component but this hasn't worked.
The text was updated successfully, but these errors were encountered: