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 (WordPress#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 <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
  • Loading branch information
4 people authored Jul 17, 2024
1 parent 64caa32 commit 75b44e7
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 75b44e7

Please sign in to comment.