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

Fix inline radios #607

Merged
merged 2 commits into from
Mar 15, 2018
Merged

Fix inline radios #607

merged 2 commits into from
Mar 15, 2018

Conversation

36degrees
Copy link
Member

@36degrees 36degrees commented Mar 15, 2018

Turns out we do actually have a style for inline radios, it's just not documented or easy to apply. (h/t to @dashouse for spotting this…)

screen shot 2018-03-15 at 09 31 17

Introduce a modifier at the block level which makes all radios within that block inline. You can’t add classes to the individual radio items using the macro, and it doesn’t really make sense to require the modifier to be applied to every individual element.

Add an example of inline radios so that they are represented in the review app.

Update the readme.

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-607 March 15, 2018 09:30 Inactive
@kr8n3r
Copy link

kr8n3r commented Mar 15, 2018

CH CH CH CHANGELOG :)

sorry :(

Introduce a modifier at the block level which makes all radios within that block inline. You can’t add classes to the individual radio items using the macro, and it doesn’t really make sense to require the modifier to be applied to every individual element.

Add an example of inline radios so that they are represented in the review app.

Update the readme.
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-607 March 15, 2018 09:53 Inactive
@36degrees
Copy link
Member Author

Updated.

🎵Just gonna have to be a different man
Time may change me,
But I can't trace time 🎵

Copy link

@kr8n3r kr8n3r left a comment

Choose a reason for hiding this comment

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

🆕

@36degrees
Copy link
Member Author

Sorry @igloosi – one more commit to check.

@kr8n3r
Copy link

kr8n3r commented Mar 15, 2018

it's good, though i feel like using inline radios is when you have shortly worded selection which should fit side-by-side on mobile.
but you never know, so better be safe ✅

@36degrees
Copy link
Member Author

Don't disagree, but from talking to @dashouse I think matching the existing behaviour in Elements is the right thing to do for now.

@36degrees 36degrees merged commit 24ba1c4 into master Mar 15, 2018
@36degrees 36degrees deleted the fix-inline-radios branch March 15, 2018 10:20
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.

None yet

3 participants