Skip to content

Commit

Permalink
Try: Allow vertical inserter in the nav block.
Browse files Browse the repository at this point in the history
Fixes #28313.
  • Loading branch information
jasmussen committed Feb 9, 2021
1 parent a15864f commit 025707c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation-link/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
display: flex;
align-items: center;
position: relative;
margin: 0;
margin: 0 0.5em 0 0;

.wp-block-navigation__container:empty {
display: none;
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/navigation/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
padding-left: 0;
}

// This is necessary for specificity of the margin items.
.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block {
margin: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

// Overrides generic ".entry-content li" styles on the front end.
.wp-block-navigation-link.wp-block-navigation-link {
margin: 0;
margin: 0 0.5em 0 0;
}

0 comments on commit 025707c

Please sign in to comment.