HTML structure of navigation blocks differs between editor and front #61170
Labels
[Block] Navigation
Affects the Navigation Block
[Type] Bug
An existing feature does not function as intended
Description
HTML structure of navigation blocks differs between editor and front.
This makes it difficult to adjust the CSS so that it looks the same in both HTML versions when it is attempted to be overridden.
Since the HTML structure in the editor feels more straightforward, it seems to me that it would be better to adapt the front end to it as well.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Editor
Front
.is-responsive
.items-justified-right
.wp-block-navigation
and other outermost classes are added to.wp-block-navigation__container
, but but not in the editor.wp-block-navigation__container
is adiv
, but in the front it is aul
..wp-block-navigation__container
, but not in the front if there are buttons (they go in.wp-block-navigation__responsive-container-content
)..has-block-overlay
on the front page..wp-block-page-list__submenu-icon
on front.wp-block-navigation-item__content
in the editor, but not in the frontEnvironment info
It was the same whether Gutenberg 18.2.0 was installed or not.
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: