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

Add ability to pass explicit names for checkbox items #719

Conversation

solidgoldpig
Copy link
Contributor

#717

Also add test for explicitly passed ids for checkbox items

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.

thanks for this

Copy link
Contributor

@NickColley NickColley left a comment

Choose a reason for hiding this comment

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

Wow, Thanks so much @solidgoldpig this PR is great. 👍

For external contributors we need to have a second reviewer from the team but from me this looks great thanks so much.

@@ -151,6 +151,59 @@ describe('Checkboxes', () => {
expect($lastLabel.attr('for')).toEqual('custom-2')
})

it('render explicitly passed item ids', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

👏

@NickColley NickColley merged commit 868b9de into alphagov:master May 24, 2018
@alex-ju alex-ju mentioned this pull request May 29, 2018
@solidgoldpig solidgoldpig deleted the checkboxes-items-can-have-explicit-names branch June 2, 2018 01:39
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