Skip to content

Conversation

@n7studios
Copy link
Contributor

Summary

Improves the rendering accuracy between the block editor and frontend site.

Broadcasts

Editor: Include the container div, so that settings such as Display order and Display as grid are reflected in the block editor. These always correctly display on the frontend site, but failed to display since introducing #842, which removed the container div in the block editor to prevent double margins/paddings rendering.

Before:
broadcasts-before

After:
broadcasts-after

Form Trigger and Product

Frontend: Enqueue the wp-block-button stylesheet, so that buttons render the same (i.e. with border radius) as the standard WordPress button block, on which the Form Trigger + Product buttons are based.

Before:
Screenshot 2025-07-12 at 11 51 34

After:
Screenshot 2025-07-12 at 11 50 54

Testing

Updated Form Trigger and Product tests to confirm WordPress' button block styles are included in frontend output.
Visual tests performed to confirm output accurate between the block editor and frontend.

Checklist

@n7studios n7studios self-assigned this Jul 12, 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 requested review from a team, corydhmiller and noelherrick and removed request for a team July 15, 2025 14:15
@n7studios n7studios marked this pull request as ready for review July 15, 2025 14:15
@n7studios n7studios merged commit 148807e into main Jul 16, 2025
594 of 629 checks passed
@n7studios n7studios deleted the fix-block-render-accuracy branch September 9, 2025 01:47
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