Skip to content

Categories block doesn't inherit css from style.css on the Editor #43999

Closed

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions