-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Button: Add opt-in prop for next 40px default size #50254
Conversation
Size Change: +78 B (0%) Total Size: 1.38 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 🚀
Flaky tests detected in 5d6cdd5. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4926245319
|
For the dev note, see #46741 |
Warning: Type of PR label error To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. |
Part of #46741
What?
Adds a
__next40pxDefaultSize
prop to opt into the new 40px default size for Button.We're not quite ready to feature this prop in the documentation yet (like README and default code snippets), so I'll update those later when appropriate.
Why?
We need a way for folks to gradually adopt the new sizing scheme in a controlled way.
Testing Instructions
npm run storybook:dev
and go to the Canvas view for the Button component.__next40pxDefaultSize
and check that the size changes as expected.CleanShot.2023-05-03.at.00.36.16.mp4