-
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
Add spacing tools to time to read block #49392
Conversation
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.
@t-hamano Thanks for pointing that out, I've added it in the last commit. I noticed it makes the visualizer stop working correctly, so perhaps that needs to take box sizing into account. I'll treat that as a separate issue though. |
Size Change: +28 B (0%) Total Size: 1.34 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 👍
Actually, I think this is more related to the dynamic nature of some of the presets. Some values like this one: --wp--preset--spacing--70: clamp(5rem, 5.25rem + ((1vw - 0.48rem) * 9.096), 8rem); Might be evaluated differently because the PaddingVisualizer is rendered in a popover slot and the block itself isn't. Units like I had similar challenges in #45056, and the solution was to render the visualizer inline. |
Thanks for the review @t-hamano! |
I put a fix together for the inaccuracy of the visualizer in #49422 |
What?
Closes #48968
Adds spacing tools (padding, margin) to the time to read block.
Why?
See #48968
How?
Adds the spacing support properties to the block.json.
Testing Instructions
Screenshots or screencast