-
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
SlotFill: Remove knobs in stories #46957
Conversation
Size Change: 0 B Total Size: 1.32 MB ℹ️ View Unchanged
|
@@ -11,19 +6,21 @@ import { createContext, useContext } from '@wordpress/element'; | |||
/** | |||
* Internal dependencies | |||
*/ | |||
import { Slot, Fill, Provider } from '../'; | |||
import { Slot, Fill, Provider as SlotFillProvider } from '../'; |
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.
Renaming to match the name of the public export so it's more understandable in the code snippets.
const name = text( 'name', 'Grace' ); | ||
const age = number( 'age', 33 ); |
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.
Controls aren't very helpful for these components so I think we can remove them altogether. Separate stories with good usage examples and descriptions are a better fit. (We can add better descriptions in the full TypeScript refactor.)
Flaky tests detected in 5ebf7e5. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3859553989
|
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 🚀
Part of #35665
What?
Remove the Knobs add-on from
SlotFill
stories.Why?
This is now a blocker for supporting npm 8 (#46443).
How?
Just a quick, minimal refactor.
Testing Instructions
npm run storybook:dev
SlotFill
component.