-
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
QueryControls
: Add opt-in prop for 40px default size
#56576
Conversation
The RangeControl in QueryControls already has the prop enabled: gutenberg/packages/components/src/query-controls/index.tsx Lines 178 to 180 in 05dcf4b
Would we want to set all to true for consistency instead of making it opt-in? Or make RangeControl optional? |
I would pass the |
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.
Things are looking good, probably this is good to be merged after the __next40pxDefaultSize
prop gets passed to RangeControl
8d12693
to
ccf62e9
Compare
ccf62e9
to
be58b48
Compare
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.
🚀
* `QueryControls`: Add opt-in prop for 40px default size * Update RangeControl 40px size to be opt-in * Update changelog
Part of #46741
What?
Add a new opt-in prop
__next40pxDefaultSize
to QueryControls, following the plan outlined in above mentioned PR.Why?
For more consistency in styling.
How?
A new, temporary
__next40pxDefaultSize
prop. When the prop is set totrue
, the inputs will have a height of 40px.Testing Instructions
In Storybook:
npm run storybook:dev
__next40pxDefaultSize
totrue
for QueryControlsIn the editor
Smoke test the component in the editor; QueryControls shouldn't have any visible changes for now.