Skip to content

Add support for custom spacing in core - #951

Closed
oandregal wants to merge 1 commit into
WordPress:masterfrom
oandregal:update/custom-spacing-support
Closed

oandregal wants to merge 1 commit into
WordPress:masterfrom
oandregal:update/custom-spacing-support

Conversation

@oandregal

@oandregal oandregal commented Jan 28, 2021 •

Copy link
Copy Markdown
Member

See track ticket https://core.trac.wordpress.org/ticket/51760

As per WordPress/gutenberg#25788 the experimental-custom-spacing was marked stable and themes can now add support for it via add_theme_support('custom-spacing'). This PR adds support for it in core.

Test instructions

For this to work, it needs WordPress/gutenberg#28548 to be part of Gutenberg 9.9 and the packages to be released and merged in WordPress core.

When that's done, the instructions below should be reproducible:

  • Install TwentyTwentyOne them, which has support for custom-spacing.
  • Make sure the Gutenberg plugin is not enabled.
  • Go to the post editor and add a group block.
  • Verify that there's a spacing panel:

Captura de ecrã de 2021-01-28 11-50-07

@oandregal

oandregal commented Jan 28, 2021 •

Copy link
Copy Markdown
Member Author

I've also prepared the corresponding changes for Gutenberg WordPress/gutenberg#28548

@noisysocks noisysocks closed this Jan 29, 2021
@oandregal
oandregal deleted the update/custom-spacing-support branch January 29, 2021 09:20
@oandregal oandregal mentioned this pull request Feb 3, 2021
75 of 82 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants