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 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

1 comment on commit 75b44e7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 75b44e7.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9967597119
📝 Reported issues:

Please sign in to comment.