-
Notifications
You must be signed in to change notification settings - Fork 8
Blocks: Add Margin and Padding Support #844
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
Blocks: Add Margin and Padding Support #844
Conversation
| // See: https://github.com/WordPress/gutenberg/issues/32417. | ||
| '__experimentalSkipSerialization' => true, | ||
| ), | ||
| 'typography' => array( |
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 was never supported in the Product block, so not sure when this got added. I'd prefer to add typography / font selection support in a separate PR that covers all blocks, so we have consistent options for users.
WordPress Playground🚀 Your PR has been built and is ready for testing in WordPress Playground! |
This ensures the preview matches the output of the page
WordPress Playground🚀 Your PR has been built and is ready for testing in WordPress Playground! |
`visualizers` aren’t needed in the block editor. `fontSize` belongs within `typography`
Blocks: Add Typography Support
WordPress Playground🚀 Your PR has been built and is ready for testing in WordPress Playground! |
Summary
Adds the block editor's native margin and padding controls to the Broadcasts, Form Trigger and Product blocks.
Testing
testBroadcastsBlockWithMarginAndPaddingParameters: Test the Broadcasts block's margin and padding parameters works.testFormTriggerBlockWithMarginAndPaddingParameters: Test the Form Trigger block's margin and padding parameters works.testProductBlockWithMarginAndPaddingParameters: Test the Product block's margin and padding parameters works.Checklist