-
Notifications
You must be signed in to change notification settings - Fork 385
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 navigation items distorted #3598
Comments
The surrounding UL has gotten some extra spacing: .editor-styles-wrapper ol,
.editor-styles-wrapper ul {
padding: inherit;
padding-left: 1.3em;
margin-left: 1.3em;
} I don't know where it comes from, it's just part of a |
@barklund FYI, this explains where those inline styles come from: https://developer.wordpress.org/block-editor/developers/themes/theme-support/#editor-styles Although I thought we are removing any theme styles from the stories editor 🤔 We should be able to fix the styles by changing https://github.com/ampproject/amp-wp/blob/5e4ac3befd3ad548fc88ea27feecb23c77656b87/assets/src/stories-editor/components/block-navigation/edit.css accordingly. |
@swissspidy, I have done as you suggested and it seems to work. Should we make it more idiot-proof (resetting more potential custom editor stylings from theme) or is this sufficient? |
Looks like the culprit is WordPress/gutenberg#17958 and the offending CSS is defined here: I think your proposed fix is fine for now 👍 |
Bug Description
Items are currently not aligned in the block navigation, probably due to some change in upstream Gutenberg CSS.
Expected Behaviour
All items in the block navigation should be full width. Upstream CSS changes should ideally not affect our custom block navigation.
Steps to reproduce
Screenshots
Additional context
develop
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: