-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
BaseControl: Refactor stories to use Controls #38741
Conversation
Size Change: 0 B Total Size: 1.15 MB ℹ️ View Unchanged
|
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 🚀
parameters: { | ||
knobs: { disable: false }, | ||
}, | ||
subcomponents: { BaseControl: BaseControl.VisualLabel }, |
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.
TIL about the subcomponents
flag — it's probably something that we should use in all stories related to a component "family" — e.g. Card
, ItemGroup
, ToolsPanel
...
Part of #35665
In preparation for #38730
Description
Refactors stories for
BaseControl
to use Controls instead of Knobs.Also adds a story for
BaseControl.VisualLabel
, with some inline notes to prevent misuse.Testing Instructions
npm run storybook:dev
BaseControl
and compare with https://wordpress.github.io/gutenberg/?path=/story/components-basecontrol--defaultTypes of changes
Storybook only.
Checklist:
*.native.js
files for terms that need renaming or removal).