Skip to content

Commit

Permalink
Unset classic margins.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored and tellthemachines committed Sep 1, 2021
1 parent 29fe4a7 commit 6ddc5ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/block-library/src/navigation/editor.scss
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 6ddc5ca

Please sign in to comment.