Skip to content

Design Tools: Enhance Block Gap control to support axial configuration #34529

@jasmussen

Description

@jasmussen

What problem does this address?

#32366 adds a theme.json mechanism to provide a a blockGap value to space out items in a container. Spacing using gap has the benefit of letting you not worry about the first or last elements in a container, or complex nth-child margins in containers that wrap.

#33991 added a basic UI for it, with a single CSS variable to begin with.

What is your proposed solution?

Like how the padding control offers axial controls, a similar interaction could be used to split the single gap value into a column-gap and row-gap:

padding

The control would still be subject to design improvements pending from #27331 work, but the primary interaction would be the same. Sucha control would benefit Navigation, Social Icons and Buttons block, as those get gap support (#34525, #34526, #34527).

Metadata

Metadata

Assignees

Labels

Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi

Type

No type
No fields configured for issues without a type.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions