From 1b59b524bc7380b8868408f78012326fee18bc1c Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Wed, 17 Jul 2024 11:17:36 +0800 Subject: [PATCH] Navigation block: Allow themes to override block library text-decoration rule (#63406) * Reduce specificity of navigation text decoration rule * Apply Aaron suggestion to also lower specificity for focus/active * Remove `:not([class*="has-text-decoration"])` from selector ---- Co-authored-by: talldan Co-authored-by: ellatrix Co-authored-by: aaronrobertshaw --- packages/block-library/src/navigation/style.scss | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/block-library/src/navigation/style.scss b/packages/block-library/src/navigation/style.scss index 41606d5431e3f..3d7a8810ae9b7 100644 --- a/packages/block-library/src/navigation/style.scss +++ b/packages/block-library/src/navigation/style.scss @@ -76,15 +76,10 @@ $navigation-icon-size: 24px; } } - &:where(:not([class*="has-text-decoration"])) { - a { - text-decoration: none; - - &:focus, - &:active { - text-decoration: none; - } - } + & :where(a), + & :where(a:focus), + & :where(a:active) { + text-decoration: none; } // Submenu indicator.