Make WordPress Core

Opened 5 weeks ago

Closed 5 weeks ago

#66263 closed defect (bug) (fixed)

Normalize block gap values in layout and fix grid axial gap

Reported by: isabel_brison Owned by: isabel_brison
Priority: normal Milestone: 7.2
Component: Editor Version: trunk
Severity: normal Keywords: gutenberg-merge has-patch has-unit-tests
Cc: Focuses:

Description

A couple of layout/block gap fixes need syncing from Gutenberg:

​https://github.com/WordPress/gutenberg/pull/81460

and the fix for grid responsive column sizing when different vertical and horizontal gap values are present from ​https://github.com/WordPress/gutenberg/pull/81476.

Change History (6)

This ticket was mentioned in ​PR #13011 on ​WordPress/wordpress-develop by ​@isabel_brison.


5 weeks ago
#1

  • Keywords has-patch has-unit-tests added

​@andrewserong commented on ​PR #13011:


5 weeks ago
#2

Just double-checking, ​https://github.com/WordPress/gutenberg/pull/81476/ also updated the axial gap handling in the Theme JSON class. Should that be updated in this PR, too (along with the tests), or is it being handled separately?

​@isabel_brison commented on ​PR #13011:


5 weeks ago
#3

Should that be updated in this PR, too (along with the tests), or is it being handled separately?

Oh that's a good question! It probably makes sense to add those changes here rather than opening a separate PR/ticket for them.

​@isabel_brison commented on ​PR #13011:


5 weeks ago
#4

Updated! Thanks for noticing that @andrewserong or it might have slipped through 😅

​@isabel_brison commented on ​PR #13011:


5 weeks ago
#5

The only nit I could think of is whether we need to add ticket numbers to the added tests?

Oh yes, good idea!

#6 @isabel_brison
5 weeks ago

  • Owner set to isabel_brison
  • Resolution → fixed
  • Status new → closed

In 64238:

Editor: normalize block gap values in layout and fix grid axial gap.

Ensures incorrect gap values don’t cause errors, fixes grid responsive column sizing when different vertical and horizontal gap values are present and ensures layouts that don’t support axial gap still get correct values.

Props isabel_brison, andrewserong.
Fixes #66263.

Note: See TracTickets for help on using tickets.