Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#64413 new enhancement

Block Supports: Add presets support for dimensions block supports

Reported by: aaronrobertshaw's profile aaronrobertshaw Owned by:
Milestone: 7.0 Priority: normal
Severity: normal Version: trunk
Component: Editor Keywords: gutenberg-merge has-patch has-unit-tests
Focuses: Cc:

Description

This ticket tracks the backport of PHP files for the following Gutenberg updates:

https://github.com/WordPress/gutenberg/pull/73811

These updates include the PHP changes to add presets to dimensions block supports such as width, min-height etc.

The ability to leverage a defined set of preset values for dimensions block supports greatly improves the UX, alleviating the need for users to know and manually set the same value across multiple blocks.

Change History (1)

This ticket was mentioned in PR #10628 on WordPress/wordpress-develop by @aaronrobertshaw.


6 weeks ago
#1

  • Keywords has-patch has-unit-tests added

Trac ticket: https://core.trac.wordpress.org/ticket/64413

This PR brings the changes from the following Gutenberg PRs to core:

https://github.com/WordPress/gutenberg/pull/73811

### Description

Adds support for preset dimensions values to be defined within theme.json and used across block supports such as; width, min-height etc.

### Testing

  1. Adopt width support on a block or use the Group block with min-height support
  2. Add dimensionSizes presets to your theme.json
  3. Add styles to your test blocks within your theme.json using both the presets and custom values
Note: See TracTickets for help on using tickets.