Skip to content

Conversation

@n7studios
Copy link
Contributor

Summary

Building on #844, adds the block editor's native typography controls to the Broadcasts, Form Trigger and Product blocks.

Also cleans up supports() and attributes() to be standardised, removing some now deprecated properties.

Before (e.g. Broadcasts block with no font size or line height options):

Screenshot 2025-07-09 at 14 48 01

After (e.g. Broadcasts block with an XL font size and line height specified):

Screenshot 2025-07-09 at 14 49 42

Screenshot 2025-07-09 at 14 49 49

Testing

  • testBroadcastsBlockWithTypographyParameters: Test the Broadcasts block's typography parameters work.
  • testFormTriggerBlockWithTypographyParameters: Test the Form Trigger block's typography parameters work.
  • testProductBlockWithTypographyParameters: Test the Product block's typography parameters work.

Checklist

n7studios added 2 commits July 9, 2025 14:45
`visualizers` aren’t needed in the block editor.
`fontSize` belongs within `typography`
@n7studios n7studios self-assigned this Jul 9, 2025
@github-actions
Copy link

github-actions bot commented Jul 9, 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

@github-actions
Copy link

github-actions bot commented Jul 9, 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 9, 2025 08:21
@n7studios n7studios marked this pull request as ready for review July 9, 2025 08:21
@n7studios n7studios merged commit dfa2481 into block-margin-padding-block-spacing Jul 10, 2025
266 of 289 checks passed
@n7studios n7studios deleted the block-typography 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