-
Notifications
You must be signed in to change notification settings - Fork 70
Updates Code example [LG-2954, LG-2950, LG-2951] #1700
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
Conversation
Size Change: -220 B (0%) Total Size: 917 kB
ℹ️ View Unchanged
|
argTypes: { | ||
...storybookArgTypes, | ||
darkMode: storybookArgTypes.darkMode, | ||
baseFontSize: storybookArgTypes.updatedBaseFontSize, |
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.
Doesn't this mean we have to explicitly exclude baseFontSize
in every component even if they don't support the prop? I'm assuming that we envision every component's story meta extending this object in the future
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.
This will be passed into the LeafyGreenProvider
if the component doesn't support the prop. (this is also how it worked before with the spread)
Convert to using StoryMeta
* Update Portal.story.tsx * moves menu item children in story * ignore stories.js* * Update StoryMeta.ts * moves menu children back * import StoryMeta in typography story * Update Toast.story.tsx * Updates default `as` prop in SB * updates Button tsdoc * add comments * Update Toast.story.tsx * rm children, as from default StoryMeta * fix story meta tests * Create lovely-drinks-fix.md * use correct constant in seg-ctrl story * matk storybookArgTypes as const * changesets * Rename type to StoryMetaType * Update small-baboons-smile.md * fixes prop types in banner & box * rm children from excluded params * explicitly exclude children from args. Convert to using StoryMeta * Create lovely-zebras-shout.md * ts fix * exclude props from table story * adds display name to Stepper * Create early-suns-protect.md
✍️ Proposed changes
🎟 Jira ticket: Name of ticket
✅ Checklist
For bug fixes, new features & breaking changes
yarn changeset
and documented my changesFor new components
🧪 How to test changes