Skip to content

Column Block: Add blockGap support.#40122

Merged
ndiego merged 1 commit intoWordPress:trunkfrom
ndiego:try/add-blockgap-support-to-column-blocks
Apr 7, 2022
Merged

Column Block: Add blockGap support.#40122
ndiego merged 1 commit intoWordPress:trunkfrom
ndiego:try/add-blockgap-support-to-column-blocks

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 requested review from Mamaduka and youknowriad April 7, 2022 01:19
@ndiego ndiego requested review from ajitbohra and mkaz as code owners April 7, 2022 01:19
@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