Repository navigation
Alignment: the editor and the saved markup can disagree about a block's width - #84149
Open
rohitmathur-7 wants to merge 1 commit into
Open
rohitmathur-7 wants to merge 1 commit into
rohitmathur-7 wants to merge 1 commit into
Conversation
Show a wide or full alignment the parent layout doesn't offer as Not applied here, and let None remove it. Saved markup is unchanged.
rohitmathur-7
requested review from
ellatrix and
tellthemachines
as code owners
October 7, 2026 07:11
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Updated as activity occurs, without notifying anyone named here. Add the 🏷️ LabelsThis pull request needs exactly one label indicating its type, and has 0.
Read more about Type labels in Gutenberg. If you cannot add labels yourself, a reviewer can do it for you. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Closes #82679
Why?
The editor and the saved markup can disagree about a block's width
How?
When a block's saved alignment is one the parent layout withholds, the alignment control now stays visible instead of hiding. It shows that alignment as "Not applied here" and offers None to remove it. Saved markup is unchanged, so the alignment still applies if the block moves somewhere that supports it.
Testing Instructions
Activate a block theme that sets a wide size, such as Twenty Twenty-Five.
Create a new post, open the Code editor and paste:
I am set to full width.
Return to the Visual editor and select the inner (yellow) Group.
Check that the alignment control appears in its toolbar.
Open the control. Expect None, Wide width marked "Not available", and Full width selected and marked "Not applied here".
Click None. The control disappears, and the Code editor no longer shows "align":"full" or alignfull. Undo restores it.
Select the outer Group and turn on "Inner blocks use content width". The yellow Group's menu now offers Wide and Full as normal, selectable options.
Screenshots or screencast
Use of AI Tools
AI assistance: Yes
Tool(s): Claude
Used for: Base code generation and testing.