-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Columns block styles needs polishing and probably markup changes in the editor #7770
Comments
is there any progress regarding this issue? |
I'm also noticing strange behaviour related to the markup in the editor. Let's say we have this gutenberg code.
Currently, in the editor, this is turned into:
I would expect the column class to be And I would expect |
I think this is going to be fixed by the work @ellatrix is doing on the light BlockWrapper |
Describe the bug
Columns block styles needs polishing in the front-end and in the editor. Responsive styles for starters.
But a bigger issue that I noticed is the markup.
Front-end markup
This is now OK for basic columns. And we can style columns as we want.
Example CSS
In the editor the markup looks like this:
Which means that
wp-block-columns
always have only one direct wrapper<div class="editor-inner-blocks">
inside it and there is no<div class="wp-block-column">
anywhere.Expected behavior
Have
<div class="wp-block-column">
wrappers in the editor also so that styles would work.Screenshots
With example CSS columns in the editor looks like this:
It's in 2 columns because of Core styles but other than that it doesn't respect any of my styles.
The text was updated successfully, but these errors were encountered: