From 00ec8c5be33afb72f792fcbf05d0e1c7fb19e971 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Fri, 27 Aug 2021 13:55:57 +0200 Subject: [PATCH] Unset classic margins. --- packages/block-library/src/navigation/editor.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/block-library/src/navigation/editor.scss b/packages/block-library/src/navigation/editor.scss index e85c873c700e1..ba4212cf67777 100644 --- a/packages/block-library/src/navigation/editor.scss +++ b/packages/block-library/src/navigation/editor.scss @@ -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.