-
Notifications
You must be signed in to change notification settings - Fork 130
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 field wrapper around RadioButtons #2098
Conversation
🦋 Changeset detectedLatest commit: ba74eec The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## next #2098 +/- ##
=======================================
Coverage 96.91% 96.91%
=======================================
Files 258 258
Lines 23148 23145 -3
Branches 2160 2160
=======================================
- Hits 22434 22432 -2
Misses 707 707
+ Partials 7 6 -1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 great! Thanks for aligning this
options.map((option) => ( | ||
<RadioButton | ||
{...option} | ||
key={option.label} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea to use the label as the key!
Will merge this after merging and rebasing on #2105. |
Closing in favor of #2124. |
Addresses #1875.
Purpose
In v6, we wrapped all form fields in a
div
to make them easier to style. From the migration guide:We missed doing this for the RadioButton component.
Approach and changes
div
from the RadioButtonGroupDefinition of done