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
fix: radio button storybook bug #16082
fix: radio button storybook bug #16082
Conversation
packages/react/src/components/RadioButton/RadioButton.stories.js
Outdated
Show resolved
Hide resolved
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Looking at the issue, looks like we also need to remove the defaultSelected
prop from the default story.
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Yeah, I agree with Alison. Other than that I think this looks great
@alisonjoseph it shouldn't be selected - is that what you mean? Just want to clarify here: |
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.
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.
Hi @andreancardona, I noticed the smart adjustment you made for the default dropdown options!
However, I'm encountering an issue where the default dropdown options 1, 2, and 3 aren't functioning as expected. When I select different options, the output consistently shows the 3rd option as selected. Could you please take a look?
Screen.Recording.2024-04-02.at.1.28.05.PM.mov
@Kritvi-bhatia17 defaults.update.after.refresh.mov |
Ohh damn, I didn't know that earlier. Thanks Taylor! |
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.
Nice work @andreancardona 🔥
Looks good to me from design perspective!
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.
LGTM 👍 ✅
f28b9ab
* fix: radio button storybook bug * Update packages/react/src/components/RadioButton/RadioButton.stories.js * fix: remove default selected * fix: update tests --------- Co-authored-by: TJ Egan <tw15egan@gmail.com>
Closes #15705
defaultSelected
prop in theRadioButton
playgroundRadioButton
(s) to be rendered as children ofRadioButtonGroup
Changelog
Removed
Removed the following props from
RadioButton
Testing / Reviewing
defaultSelected
prop in theRadioButton
playground