Skip to content

Commit

Permalink
Navigation block: Allow themes to override block library text-decorat…
Browse files Browse the repository at this point in the history
…ion 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 <talldanwp@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
  • Loading branch information
4 people authored and gutenbergplugin committed Jul 18, 2024
1 parent e7e2525 commit bca5381
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bca5381

Please sign in to comment.