-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix list block not properly aligned #21971
Conversation
Size Change: +4 B (0%) Total Size: 816 kB
ℹ️ View Unchanged
|
To clarify, the idea is to restore the same amount of specificity which existed for these specific styles that had existed with this removed code? https://github.com/WordPress/gutenberg/pull/20951/files#diff-947e2eca7278f9a543620b68d7187d09 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Yes and at the same time, keep the patterns centered properly (no edit-post classnames) |
I tested: lists (and other random blocks) in the editor, block examples, and patterns. Everything seems fine. 👍 |
closes #21961
In #20951 I updated the "centering" of blocks to avoid relying on
editor-*
classNames. The idea is that the blocks should be centered regardless of the context of the block editor. This fixed the issue we had with block previews not centered properly.But the reduced specificity cause conflicts with editor styles (list), so lists were not aligned properly. This PR restores the level of specificity but keeps the generic styles solving both issues at the same time.
Testing instructions