Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spacing controls to the featured image block #35775

Merged
merged 3 commits into from Oct 20, 2021

Conversation

kjellr
Copy link
Contributor

@kjellr kjellr commented Oct 19, 2021

This PR adds spacing controls (margin + padding) to the featured image block, so that block themes have more control over placement.

Screenshot:

Screen Shot 2021-10-19 at 12 49 44 PM

Testing:

  1. Add a featured image block.
  2. Check to see if margin and padding controls are active.

(Your theme will need to opt in to showing both Margin and Padding controls. Twenty Twenty-Two is an example of a theme that does this).

@kjellr kjellr added [Type] Enhancement A suggestion for improvement. [Block] Post Featured Image Affects the Post Featured Image Block labels Oct 19, 2021
@kjellr kjellr self-assigned this Oct 19, 2021
@carolinan carolinan merged commit f7b26ab into trunk Oct 20, 2021
@carolinan carolinan deleted the add/spacing-to-featured-image branch October 20, 2021 05:50
@github-actions github-actions bot added this to the Gutenberg 11.8 milestone Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Featured Image Affects the Post Featured Image Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants