tomusborne / generatepress

453 stars 89 forks source link

Fix: Don't apply block margin to core Heading #497

Closed tomusborne closed 1 year ago

tomusborne commented 1 year ago

This fixes an issue being introduced by WordPress.

To replicate:

  1. Enable the legacy Typography system in GP by setting the use_dynamic_typography option in our defaults.php file to false.
  2. Enable the Gutenberg plugin
  3. Add a set of core Heading blocks to a page

The addition of the wp-block-heading class to the core Heading block makes it so our legacy block margin applies to the headings, instead of their inherited heading margins.