-
Notifications
You must be signed in to change notification settings - Fork 367
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
M3-5611: Update Selection Card story #8206
Conversation
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 Job
One thing I'm seeing is that selecting Arch Linux
or Debian
results in no icon.
Also, I see the filename is SelectionCardNew.stories.mdx. Could the word New
be removed?
@bnussman I'm not sure why the image icons aren't working, they weren't working in the old tsx file either 🤔 . Edit: Created M3-5730 to address this |
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.
From the controls, if you remove the subheadings
, the story crashes:
which is understandable since subheadings
are required, but do we want to allow for this?
Also, if you attempt to add subheadings
back after removing the array, Storybook defaults it to an object. Is there a way to have it default to an array?
packages/manager/src/components/SelectionCard/SelectionCard.stories.mdx
Outdated
Show resolved
Hide resolved
@DevDW Looks like Storybook is using a library for the JSON tree view (storybookjs/storybook#12824). It doesn't look like the root was deletable in this comment, but they were pulling code into the Controls addon directly. So, I'm not sure if there's much we can do on our side. |
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.
Added one optional comment but everything else looks good!
Description
How to test
yarn storybook