-
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
BoxControl: Add custom units #27626
BoxControl: Add custom units #27626
Conversation
Size Change: +23 B (0%) Total Size: 1.21 MB
ℹ️ View Unchanged
|
Nice small PR, welcome feature. I'll defer a code review to the others, but happy to see this land! |
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 works as expected and themes can filter the values by adding fewer units in the customUnits
property of its theme.json.
Note that TT1-blocks needs updating to work with this, I've prepared a PR at WordPress/theme-experiments#139
This can go in as soon as tests are green. The two that were failing seemed unrelated so I've restarted them.
FWIW, I've tested this with cover and group and works fine for me. |
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 👍
Description
Adds support for custom units to the box control component when the theme declares support for it.
Fixes #27615
How has this been tested?
In TwentyTwentyOne Blocks
Screenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: