Navigation block with no defined block gap doesn't render properly in the editor #54994
Labels
[Block] Navigation
Affects the Navigation Block
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Type] Bug
An existing feature does not function as intended
Description
If a theme defines a navigation block without any block gap defined, it should inherit the default block gap, and render that in the editor and the frontend. Since Gutenberg 16.7.0, the gap doesn't render in the editor.
Step-by-step reproduction instructions
Appearance > Editor
, and observe the navigationAppearance > Editor
and observe the navigation.Screenshots, screen recording, code snippet
In versions before 16.7.0, this css is being applied to the navigation in the editor
And
These are not present in Gutenberg 16.7.0. The frontend is unaffected in both cases.
Screenshot with Gutnberg 16.6
Screenshot with Gutenberg 16.7
Please note that this is not observable if the theme specifies a custom block gap for the navigation block like this
Environment info
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: