[wp-trac] [WordPress Trac] #65101: Ensure layout classnames are applied to the inner blocks wrapper and not to its siblings
WordPress Trac
noreply at wordpress.org
Mon Apr 20 08:22:44 UTC 2026
#65101: Ensure layout classnames are applied to the inner blocks wrapper and not to
its siblings
-------------------------------------------------+-------------------------
Reporter: isabel_brison | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 7.1
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: gutenberg-merge has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by darshitrajyaguru97):
== Patch Testing ==
I tested the provided patch locally and verified the behavior.
=== **Environment ===
* WordPress: 7.0 RC2
* PHP: 8.3
* Server: Nginx
* Browser: Chrome
* OS: Windows 11
=== **Testing Steps ===
1. Applied the patch from this ticket.
2. Created Group blocks with layout settings (flex, constrained, etc.).
3. Added nested blocks and sibling blocks.
4. Inspected DOM output.
=== **Results ===
- Layout classnames are now correctly applied only to the inner blocks
wrapper.
- No class leakage to sibling elements observed.
- Nested block structures behave as expected.
=== **Unit Tests ===
- All existing and added tests pass successfully.
=== **Notes ===
- Patch aligns with Gutenberg PR
https://github.com/WordPress/gutenberg/pull/77408.
- Behavior is consistent with editor expectations.
Patch looks good to me
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65101#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list