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

GDS radio button update #86

Closed
wants to merge 6 commits into from

Conversation

rmbielby
Copy link
Contributor

Covering off the radio button label centre alignment for inline buttons in accordance with Issue #60.

image

Note that it centre aligns within the overall container and not to the width of the options, so requires careful use by anyone using inline as it is. The remit says to centre align the text, but maybe it makes more sense to centre align the options as well as the text when inline?

@rmbielby rmbielby self-assigned this Jun 14, 2024
@rmbielby rmbielby changed the base branch from master to update-to-gds-v5.4 June 14, 2024 16:35
@sarahmwong
Copy link
Collaborator

sarahmwong commented Jun 17, 2024

Thank you Rich! Sorry my comment wasn't very clear at all on the original issue - centre aligning the options (as in the text next to the buttons!) was what I'd meant - happy if the actual label text is left-aligned if this isn't too much of a pain to revert!

This fix looks good though and in line with the gov.uk expectations, and fixes the issue we have with text being underneath the radio buttons and slightly out of line in the current version - however I can't replicate your output in the run_example - does it need any other arguments added to it? Still looks like this for me:

Screenshot 2024-06-17 at 11 50 41

@rmbielby
Copy link
Contributor Author

I'm ditching this one due to misunderstanding what was being asked for. Seemed easier after that to start afresh on a separate branch.

@rmbielby rmbielby closed this Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants