From 0b0bf299060a65ec37f5d9b739fcf184bdb6b190 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Wed, 24 Mar 2021 11:59:05 +0100 Subject: [PATCH 1/2] Fix padding issues with nav screen. --- packages/edit-navigation/src/components/editor/style.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/edit-navigation/src/components/editor/style.scss b/packages/edit-navigation/src/components/editor/style.scss index 62f5985120bdd5..94bcecdb769ce3 100644 --- a/packages/edit-navigation/src/components/editor/style.scss +++ b/packages/edit-navigation/src/components/editor/style.scss @@ -25,7 +25,8 @@ font-family: $default-font; } - .wp-block-navigation-link { + // Increase specificity. + .wp-block-navigation .wp-block-navigation-link { display: block; // Show submenus on click. @@ -59,8 +60,8 @@ .wp-block-navigation-link__label, .wp-block-navigation-link__placeholder-text { - padding: $grid-unit-15; - padding-left: $grid-unit-30; + padding: $grid-unit-05; + padding-left: $grid-unit-10; } .wp-block-navigation-link__label { From f72de1840ba9243dc48d743891ff77800ac84cfe Mon Sep 17 00:00:00 2001 From: jasmussen Date: Wed, 24 Mar 2021 13:11:31 +0100 Subject: [PATCH 2/2] Fix for non block themes. --- packages/edit-navigation/src/components/editor/style.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/edit-navigation/src/components/editor/style.scss b/packages/edit-navigation/src/components/editor/style.scss index 94bcecdb769ce3..353421d9d18018 100644 --- a/packages/edit-navigation/src/components/editor/style.scss +++ b/packages/edit-navigation/src/components/editor/style.scss @@ -49,7 +49,6 @@ } .wp-block-navigation-link__content { - padding: 0; margin-bottom: 6px; border-radius: $radius-block-ui;