-
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
Categories block doesn't inherit css from style.css on the Editor #43999
Comments
Hi! |
Are you able to test if your CSS works with this PR? #43666 |
Sorry i forgot to mention that this test was made on the latest Gutenberg trunk, so this PR should already be in. |
@SGr33n If you pull the latest |
Thanks @t-hamano and @carolinan! |
I can confirm, #43666 solved this. |
Description
Hi!
Defining a custom style for the categories core block doesn't affect that style on the editor.
The style works, on the other hand, on the page list block (pretty similar to the categories one).
Step-by-step reproduction instructions
Add a categories list block and a page list block.
Add the following code on your styles.css
both are working on the frontend, while only the page list block is getting the correct style.
This looks a problem on the Editor's class names:
block-editor-block-list__block wp-block wp-block-page-list on the block pages list.
wp-block-categories__list wp-block-categories__list-level-0 on the categories list block.
the second one should probably be:
block-editor-block-list__block wp-block wp-block-categories-list
Screenshots, screen recording, code snippet
No response
Environment info
WordPress: 6.0.2
Gutenmberg: latest trunk
Theme: TwentyTwenty-two
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: