Gutenberg: Vertical navigation block is missing a class on the front

Created on 25 Apr 2020  路  3Comments  路  Source: WordPress/gutenberg

Describe the bug
In the editor, the vertical variation of the navigation block can be identified with
is-vertical but this CSS class is not present on the front, so there is no way to tell the
horizontal and vertical styles from the other.

To reproduce
Steps to reproduce the behavior:

  1. Add a vertical navigation block to a post or page
  2. Add a horizontal navigation block too, in case you wish to compare them.
  3. Save
  4. View the front

Expected behavior
I expect the CSS class and the existing styles to be applied to block.

Screenshots
is-vertical-is-missing

Editor version (please complete the following information):

  • WordPress version: 5.4
    Gutenberg 7.9.1

Desktop (please complete the following information):

  • OS: win 10
  • Browser: Chrome Version 81.0.4044.122
[Block] Navigation [Status] In Progress [Type] Bug

Most helpful comment

Just changing this to a bug as currently the editor and front end versions of the block don't match (Navigation (vertical) is displayed horizontally in the post, but vertically in the editor) due to the missing classname.

All 3 comments

Great catch @carolinan as that makes sense for me too.

Just changing this to a bug as currently the editor and front end versions of the block don't match (Navigation (vertical) is displayed horizontally in the post, but vertically in the editor) due to the missing classname.

Edit: Current workaround:
Add is-horizontal or is-vertical as extra CSS class to each navigation blocks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hedgefield picture hedgefield  路  3Comments

mhenrylucero picture mhenrylucero  路  3Comments

wpalchemist picture wpalchemist  路  3Comments

ellatrix picture ellatrix  路  3Comments

franz-josef-kaiser picture franz-josef-kaiser  路  3Comments