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

Column Block: Add blockGap support. #40122

Merged

Conversation

ndiego
Copy link
Member

@ndiego ndiego commented Apr 7, 2022

What?

This PR simply adds blockGap support to Column blocks.

Why?

#39422 enabled layout on Column blocks. As a result, all blocks within a Column block now have blockGap applied. While this is fine, I think we should go the extra step end ensure that blockGap control is then enabled for the Column block. Since #39422 will be included with WordPress 6.0, I feel we should try and get this PR included as well with Gutenberg 13.0.

I know we are close to the deadline but just caught this in my testing. 😬

Testing Instructions

  1. Insert a Columns block
  2. Add a few blocks to a Column block
  3. Enable "Block Spacing" under dimension control and confirm it works as expected.

column-blockgap

@ndiego ndiego added the [Block] Columns Affects the Columns Block label Apr 7, 2022
@ndiego ndiego added this to the Gutenberg 13.0 milestone Apr 7, 2022
@ndiego ndiego self-assigned this Apr 7, 2022
@ndiego ndiego added the [Type] Enhancement A suggestion for improvement. label Apr 7, 2022
@ndiego ndiego requested a review from jasmussen April 7, 2022 01:22
Copy link
Contributor

@andrewserong andrewserong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea @ndiego! This is testing well for me, and makes good sense to add it in now that the block is using the layout support 👍

Also, since the block spacing control is hidden by default, I don't think there's too much concern about folks being confused between this block spacing control and the Columns level control, since you sort of have to go looking for it anyway.

LGTM!

@ndiego
Copy link
Member Author

ndiego commented Apr 7, 2022

Thanks for reviewing @andrewserong! As soon as the checks finish running, I'll 🚢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Columns Affects the Columns Block [Type] Enhancement A suggestion for improvement.
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants