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

Allow extra form group classes on all form components #1059

Merged
merged 1 commit into from
Nov 7, 2018
Merged

Allow extra form group classes on all form components #1059

merged 1 commit into from
Nov 7, 2018

Conversation

colinrotherham
Copy link
Contributor

I'm updating a service to the new design system and we need classes on form-group items.

I saw this was added recently, but yes we need them on more components than just radio/checkbox! 😊 (You guessed it @NickColley #1043 (comment))

This adds formGroup: { classes: 'extra-class' } support to:

date-input
file-upload
input
select
textarea

Which follows on nicely from #1043 that added:

checkboxes
radios

Thanks

@colinrotherham
Copy link
Contributor Author

I've followed the same naming conventions as @igloosi and hidden the new examples from the readmes.

@kr8n3r
Copy link

kr8n3r commented Nov 7, 2018

This is ace @colinrotherham 🎉

Looks good, checked out the PR and ran locally. Need second dev to approve it.

Also fixes: #1042

@kr8n3r kr8n3r added this to the [NEXT] milestone Nov 7, 2018
CHANGELOG.md Outdated Show resolved Hide resolved
@NickColley
Copy link
Contributor

Epic, the CHANGELOG needs adjusting slightly and I think we can merge this.

@kr8n3r kr8n3r merged commit 25b17df into alphagov:master Nov 7, 2018
@colinrotherham colinrotherham deleted the form-group-classes branch November 7, 2018 11:25
@web-bert
Copy link
Contributor

web-bert commented Nov 7, 2018

thanks @colinrotherham I was going to try and get around to doing a PR this week, but now I don't have to 👍

@kr8n3r kr8n3r mentioned this pull request Nov 19, 2018
chrimesdev added a commit to nhsuk/nhsuk-frontend that referenced this pull request Nov 22, 2018
Allow extra form group classes on all form components, which were
originally just on radios and and checkboxes.
alphagov/govuk-frontend#1059
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.

4 participants