Navigation block: Can't style block in editor using theme CSS #18914
Labels
[Block] Navigation
Affects the Navigation Block
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
The Navigation block as it appears in the editor is using class names that do not match what is rendered on the frontend when the Navigation block is published in a page or post. This means that styling made to the Navigation block by a theme is not automatically picked up by the block editor.
Ideally, a block's
editor.scss
styles should build on top of a block'sstyle.scss
styles.The markup of a Navigation block in the frontend—note the underlined class names:
The markup of a Navigation block in the editor—note the underlined class names:
There are two immediate problems:
wp-block-navigation-item__link
class but instead havewp-block-navigation-link
.wp-block-navigation-item
class but do not.The text was updated successfully, but these errors were encountered: