-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Twenty Twenty-One] Grid Block stacks to a single column in editor #7943
Comments
@dsas, sorry to keep pinging you but could you take a look to help triage this? Please note that the Grid block is also partially broken in core WordPress/gutenberg#63300 Thank you! |
@up1512001 fix looks like it will probably fix the problem but I don't think it's the correct fix. @mrfoxtalbot is right that this problem doesn't exist in dotorg. It looks to me like the root cause is that the markup output differs between dotorg and dotcom. dotcom markup(excess newlines removed) <div class="wp-block-group is-layout-grid wp-container-core-group-is-layout-1 wp-block-group-is-layout-grid">
<p>First cell</p>
<p>Second cell</p>
<p>Third cell</p>
</div> dotorg markup(excess newlines removed)
The way this works in TT1 on a dotorg site is that the outer div - For some reason the dotcom output doesn't include the inner div. It looks like it's been added to GB for a long time so I'm not sure why it is not being output yet. |
Sorry @up1512001 after having done some research it appears that this was intentional, and so we do just need to fix the styles. More detail over on the GB issue. |
@dsas This was also being tracked on the one board, if you'd like help with reviews or anything let us know. |
I see a commit in trunk that should fix this. Check this comment. WordPress/gutenberg#63300 (comment) |
I think that might just make core behave the same way, we'll need to fix the css in 2021 theme.
|
There is now a commit in trunk to fix this. Looks like our copy of TT1 is rather out of date. I'll look at merging it, following this process tomorrow: PNEWy-cvG-p2 |
Merged from core and shipped on wpcom in r66773. Big thanks to @up1512001 for the upstream work. |
Quick summary
The grid block does not show multiple columns when used with Twenty Twenty-One on a dotcom site:
Below is what the Grid Block looks like in the editor using TT1 on a self-hosted site:
The layout is also broken in the front end (in the published post) but this second issue appears to be coming directly from core and was reported here: WordPress/gutenberg#63300
Steps to reproduce
What you expected to happen
It should show a grid
What actually happened
It stacked into a single column.
Impact
All
Available workarounds?
No but the platform is still usable
Platform (Simple and/or Atomic)
Simple, Atomic
Logs or notes
No response
The text was updated successfully, but these errors were encountered: