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

Re-add array checkboxes #1390

Merged
merged 2 commits into from
Sep 20, 2022
Merged

Re-add array checkboxes #1390

merged 2 commits into from
Sep 20, 2022

Conversation

neall
Copy link
Contributor

@neall neall commented Sep 20, 2022

Initially array-style checkboxes were conflicting with existing checkbox components using caption templates. This will make it so only the array-style checkboxes will require a value in the template name.

(Because all of the checkboxes in an "array" have the same name, templates need to differ based on the value in that case.)

@neall neall requested review from a team and jonrohan September 20, 2022 18:37
@changeset-bot
Copy link

changeset-bot bot commented Sep 20, 2022

🦋 Changeset detected

Latest commit: c1e6580

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

neall and others added 2 commits September 20, 2022 14:39
We need to interpolate the value into template names specifically for
array-style checkboxes without affecting how existing non-array
checkboxes look for their caption templates.

Co-authored-by: Cameron Dutro <[email protected]>
@jonrohan jonrohan merged commit 94c3164 into main Sep 20, 2022
@jonrohan jonrohan deleted the re-add-array-checkboxes branch September 20, 2022 23:33
@primer-css primer-css mentioned this pull request Sep 20, 2022
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