From 0583c369519ca83d684e84201f175629bfba4e51 Mon Sep 17 00:00:00 2001 From: Maggie Date: Thu, 21 Oct 2021 10:55:58 +0200 Subject: [PATCH 1/2] don't reset padding to 0 on social links on mobile --- packages/block-library/src/navigation/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/navigation/style.scss b/packages/block-library/src/navigation/style.scss index 5cf54dadfe3df..bb42217371876 100644 --- a/packages/block-library/src/navigation/style.scss +++ b/packages/block-library/src/navigation/style.scss @@ -465,7 +465,7 @@ } // A default padding is added to submenu items. It's not appropriate inside the modal. - a { + a:not(.wp-block-social-link-anchor) { padding: 0; } From d99fe3166c444a9001770c6163de0764c7ec1067 Mon Sep 17 00:00:00 2001 From: Maggie Date: Thu, 21 Oct 2021 11:07:50 +0200 Subject: [PATCH 2/2] target navigation item content instead of simply links --- packages/block-library/src/navigation/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/navigation/style.scss b/packages/block-library/src/navigation/style.scss index bb42217371876..52406f62ebe00 100644 --- a/packages/block-library/src/navigation/style.scss +++ b/packages/block-library/src/navigation/style.scss @@ -465,7 +465,7 @@ } // A default padding is added to submenu items. It's not appropriate inside the modal. - a:not(.wp-block-social-link-anchor) { + .wp-block-navigation-item__content { padding: 0; }