From a85eb79e303bbe276d17fecda8d7cfdabaf71048 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Thu, 16 Apr 2020 11:03:28 +0800 Subject: [PATCH] Improve submenu indicator styling --- packages/block-library/src/navigation-link/edit.js | 10 +++++----- packages/block-library/src/navigation/index.php | 6 +++--- packages/block-library/src/navigation/style.scss | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/block-library/src/navigation-link/edit.js b/packages/block-library/src/navigation-link/edit.js index b20ca1e528eef6..846491929a3a66 100644 --- a/packages/block-library/src/navigation-link/edit.js +++ b/packages/block-library/src/navigation-link/edit.js @@ -279,12 +279,12 @@ function NavigationLinkEdit( { /> ) } + { showSubmenuIcon && ( + + + + ) } - { showSubmenuIcon && ( - - - - ) } '; } + $html .= ''; + // End anchor tag content. + if ( $has_submenu ) { $html .= block_core_navigation_build_html( $attributes, $block, $colors, $font_sizes ); } diff --git a/packages/block-library/src/navigation/style.scss b/packages/block-library/src/navigation/style.scss index fad43b7ae895e9..7f3e331a9af1e1 100644 --- a/packages/block-library/src/navigation/style.scss +++ b/packages/block-library/src/navigation/style.scss @@ -85,7 +85,7 @@ } .wp-block-navigation-link__submenu-icon { - padding: $grid-unit-10 * 0.75 $grid-unit-10 * 2; + padding-left: 1ch; svg { fill: currentColor;