Skip to content

Commit

Permalink
Unset classic margins.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Aug 27, 2021
1 parent 126b63d commit 00ec8c5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/block-library/src/navigation/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
margin-left: 0;
padding-left: 0;
}

// Revert any left/right margins.
// This also makes it work with classic theme auto margins.
.wp-block-navigation-item.wp-block {
margin-left: revert;
margin-right: revert;
}
}

// This element is inline on the frontend but needs to be editable, therefore inline-block, in the editor.
Expand Down

0 comments on commit 00ec8c5

Please sign in to comment.