Skip to content

Conversation

@n7studios
Copy link
Contributor

Summary

Adds the block editor's native margin and padding controls to the Broadcasts, Form Trigger and Product blocks.

Screenshot 2025-07-07 at 15 16 34

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

@n7studios n7studios self-assigned this Jul 7, 2025
// See: https://github.com/WordPress/gutenberg/issues/32417.
'__experimentalSkipSerialization' => true,
),
'typography' => array(
Copy link
Contributor Author

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.

@github-actions
Copy link

github-actions bot commented Jul 7, 2025

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

This ensures the preview matches the output of the page
@github-actions
Copy link

github-actions bot commented Jul 7, 2025

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, corydhmiller and noelherrick and removed request for a team July 7, 2025 10:28
@n7studios n7studios marked this pull request as ready for review July 7, 2025 10:28
n7studios added 2 commits July 9, 2025 14:45
`visualizers` aren’t needed in the block editor.
`fontSize` belongs within `typography`
@n7studios n7studios mentioned this pull request Jul 9, 2025
6 tasks
@n7studios n7studios merged commit 8fcf2e9 into use-get-block-wrapper-attributes Jul 10, 2025
@github-actions
Copy link

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios deleted the block-margin-padding-block-spacing branch July 12, 2025 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants