Description
openedon Sep 8, 2022
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
.wp-block-categories-list,
.wp-block-page-list {
list-style-type: none;
padding-left: 0;
}
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