-
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
Block editor: Extra margins around List block items with Gutenberg 14.0.0 on some themes #43754
Comments
I just played into this ticket and wanted to check-in here for updates. |
Just played into this ticket 5514682-zen and wanted to check-in here for updates. |
Thank you for your contribution. I believe this issue should be resolved on the theme side. The margins between blocks are probably implemented with a low level of detail, which is often the case. So, for example, the following CSS can be used to cancel the margins: editor-styles-wrapper [data-type="core/list-item"] {
margin: 0;
} Some default themes are affected by this, and I think these should be addressed separately as needed. |
See also #42526 |
I'm included to close this in favour of #42526 (mentioned above) which would also resolve this. |
Description
In Gutenberg 14.0.0, when using a Classic/Customizer theme such as Twenty Twenty, items in a List block seem to have a lot of extra space around them when viewed in the editor. This space is not present when viewing the list on the live site.
At a glance, it looks like there are some margins being added above and below each item. For example:
That might well be intentional given the recent update to inner blocks, but thought I'd mention it since 32px seems to match the amount of extra space that's appearing.
(Not sure if this is related to the issue involving the width of content in the editor on Classic themes: #43752 I was asked to open this report separately just in case!)
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screenshots taken with the WordPress.com Classic/Customizer theme Hever:
How the list looks in the editor :
How the list looks on the live test site:
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: