-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(RadioButtonGroup): add new legendText prop, refactor stories #7846
Merged
kodiakhq
merged 3 commits into
carbon-design-system:master
from
tw15egan:radiogroup-update
Feb 25, 2021
Merged
feat(RadioButtonGroup): add new legendText prop, refactor stories #7846
kodiakhq
merged 3 commits into
carbon-design-system:master
from
tw15egan:radiogroup-update
Feb 25, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deploy preview for carbon-elements ready! Built with commit f9df432 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit f9df432 https://deploy-preview-7846--carbon-components-react.netlify.app |
joshblack
approved these changes
Feb 19, 2021
dakahn
approved these changes
Feb 24, 2021
tay1orjones
approved these changes
Feb 25, 2021
tay1orjones
added
status: ready to merge 🎉
and removed
status: one more review 👀
status: ready for review 👀
labels
Feb 25, 2021
This PR currently has a merge conflict. Please resolve this and then re-add the |
tw15egan
force-pushed
the
radiogroup-update
branch
from
February 25, 2021 22:05
33f4542
to
e133b4e
Compare
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #6829
Based on observations by @carmacleod 🥇 , we were utilizing the (hidden)
FormGroup
component to render theRadioButtonGroup
legend text. We were also passing alegend
prop toRadioButtonGroup
that was doing nothing.This PR contains a few changes, mainly adding the
legendText
prop toRadioButtonGroup
. That way we reduce the burden of an end-user supplying afieldset
/legend
orFormGroup
and they can simply supply thelegendText
prop.Changelog
New
RadioButton-story.js
now contains stories that encapsulateRadioButtonGroup
andRadioButton
, and has theDefault
andPlayground
storiesChanged
div
inside ofRadioButtonGroup
is now afieldset
, and iflegendText
is provided, it will render alegend
element to supply the label (link).RadioButtonGroup.mdx
toRadioButton.mdx
Removed
RadioButtonGroup-story.js
Testing / Reviewing
Ensure this will properly satisfy a11y concerns with this component, and that there are no breaking changes