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
chore(tags): migrate Tag examples to storybook #987
Conversation
> | ||
{includeAvatar && ( | ||
<Tag.Avatar> | ||
<img alt="" src={`images/avatar-${Math.floor(Math.random() * 70 + 1)}.png`} /> |
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.
Let's simplify the code (and deployment size) by selecting a single, fixed avatar.
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.
Updated to a single image.
docs: { | ||
storyDescription: ` | ||
The following examples demonstrates using the \`isRegular\` prop combined with | ||
mixed weight content. Check out the code for details. |
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.
The text indicates that I can check out the code, but the "Show code" button is disabled.
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.
Was able to track it down to this bug storybookjs/storybook#13362
I've updated this story as well as 2 "No code available" failures in the Avatar
examples.
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.
[nit] the "Advanced" story would probably read better if it were named "Truncation".
Updated to "Truncation". Much better now. |
Description
This PR migrates the
react-tags
documentation to Storybook.Checklist
π design updates are Garden Designer approved (add thedesigner as a reviewer)
yarn start
)?bedrock
)πββοΈ includes new unit tests