Skip to content

Block Supports: Add width to dimensions supports#10470

Closed
aaronrobertshaw wants to merge 2 commits intoWordPress:trunkfrom
aaronrobertshaw:add/width-to-dimensions-supports
Closed

Block Supports: Add width to dimensions supports#10470
aaronrobertshaw wants to merge 2 commits intoWordPress:trunkfrom
aaronrobertshaw:add/width-to-dimensions-supports

Conversation

@aaronrobertshaw
Copy link

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

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

WordPress/gutenberg#71905

Description

Adds a new dimensions.width block support to facilitate the creation of new blocks such as the Icon block.

See: WordPress/gutenberg#71227

Testing

  1. Adopt width block support for a dynamic block e.g. Cover via its block.json file
  2. Add a width value for the chosen test block in your theme.json file
  3. Create a post with the test block type
  4. Confirm the global style is applied to your test block

This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@aaronrobertshaw aaronrobertshaw self-assigned this Nov 5, 2025
@aaronrobertshaw aaronrobertshaw added enhancement php Pull requests that update php code labels Nov 5, 2025
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@aaronrobertshaw aaronrobertshaw force-pushed the add/width-to-dimensions-supports branch 2 times, most recently from 3e882c8 to dede7bc Compare February 11, 2026 21:54
@aaronrobertshaw aaronrobertshaw marked this pull request as ready for review February 11, 2026 21:55
@github-actions
Copy link

github-actions bot commented Feb 11, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props aaronrobertshaw, andrewserong.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

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.

This is testing nicely for me, and the changes to the dimensions.php file to cover multiple supported features look good.

Tested by opting the Post Title block in, and tested via global styles and at the individual block instance level:

Image

This feature has been in Gutenberg for a while now, so this looks good to land for 7.0 in time for the beta to me 🚀

@ramonjd ramonjd force-pushed the add/width-to-dimensions-supports branch from dede7bc to df6792b Compare February 12, 2026 04:35
@ramonjd
Copy link
Member

ramonjd commented Feb 12, 2026

Committed in r61619 and 5ca0471

@ramonjd ramonjd closed this Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement php Pull requests that update php code

3 participants