-
Notifications
You must be signed in to change notification settings - Fork 66
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
Changes Storybook name for Typography Live Example to properly render on .design #2698
Conversation
🦋 Changeset detectedLatest commit: 62433ed The changes in this PR will be included in the next version bump. This PR includes changesets to release 55 packages
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 |
Size Change: 0 B Total Size: 1.39 MB ℹ️ View Unchanged
|
@@ -147,8 +147,9 @@ const meta: StoryMetaType<typeof TypographyDemoComponent> = { | |||
}; | |||
export default meta; | |||
|
|||
export const AllTypography: StoryType<typeof TypographyDemoComponent> = | |||
TypographyDemoComponent.bind({}); | |||
export const AllTypography: StoryType<typeof LiveExample> = LiveExample.bind( |
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.
isn't this the one you'd have to change to LiveExample
?
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.
cleaned this up - take a look
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.
left a note but LGTM
baseFontSize: { | ||
...storybookArgTypes.baseFontSize, | ||
description: | ||
'Storybook prop only. This font size is passed into the LeafygreenProvider.', | ||
}, | ||
darkMode: storybookArgTypes.darkMode, |
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.
axing this whole story removes the storybook control docs for these props. if we care about leaving them as part of the story, we should rename this story LiveExample
and leave TypographyDemoComponent
as-is
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.
No it doesnt, take a look at the live example
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 description is different on main: https://642700aa3e49e32bdbf0b0fc-sicyggiuaw.chromatic.com/?path=/story/components-typography--all-typography
vs this branch: https://642700aa3e49e32bdbf0b0fc-ptjdzyvgni.chromatic.com/?path=/story/components-typography--live-example
✍️ Proposed changes
🎟 Jira ticket: Name of ticket
✅ Checklist
For bug fixes, new features & breaking changes
pnpm changeset
and documented my changesFor new components
🧪 How to test changes