Repository navigation
Conversation
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: -30 B (0%) Total Size: 8.86 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome 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. Navigates the items list via UP/DOWN arrow keys in
|
|
This is not a strong opinion on my end, but I'm not thrilled about changing the underline in any way at all. It feels like such a core hypertext element that even subtle changes to how default hypertext works, feels like an antipattern. I know we have tokens for hover and active, but I don't think we have to use them, and for things like "Link" and "ExternalLink", it feels like a use case where we don't do anything here. If I'm the only one pushing back, you can ignore me, but I ask this: let's not do changes just because we can, let's do changes because they actually result in meaningful changes. In this case, Hypertext is old enough now that it's hard to beat, I don't think this beats it. If you all feel strongly about this, however, the one thing I'd push back a bit more strongly on, is changing the underline on focus. If we have to make changes, centre them around hover and active—focus is not yet an intention of interaction, it's just an indicator of "where am I?" |
The focus ring already marks keyboard focus, so focus no longer takes the hover color or the thicker underline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks Joen, that's fair. The PR makes two separate changes that IMO we should first consider separately. 1. Underline color. Neutral links currently draw their underline in a separate gray (
2. Thicker underline on hover. On trunk, a neutral link gives no visual feedback on hover apart from the pointer cursor, because its resting and hover colors are the same ( Here's the hover state with and without the color change from (1):
The underline goes from 1px to 2px, which is the smallest visible step. I tried 1.5px, and it renders the same as 2px. You're right about focus, so I've removed the focus changes. Keyboard focus now looks the same as on trunk: the focus ring shows where you are, without the hover color or the thicker underline. Because the underline now uses So my proposal: the underline color is arguably a fix, so I'd keep it. The thicker underline on hover is optional, and I'm fine dropping it, especially if #82294 lands. What do you think? |
|
I do find the thicker underline to be a bit much, in the sense that it isn't visually pleasing to me. Or rather, that thickness could look good in certain design contexts, but I don't feel like it matches our neutral look and feel. I would prefer not changing the thickness if that's possible. Like you suggest, I think just the cursor changing is probably fine? I have no particular opinion on changing the underline color though. Both seem fine to me. |
|
I'll drop the underline thickness change. One final idea that I'll mention as a possible hover visual change (especially if #82294 doesn't land) is to hide the underline on hover. But we don't have to discuss it now. Let's make a choice of the underline color: same as text (proposed change), or weaker (as currently on trunk)? |
|
No strong opinion on underline color. Removing the underline on hover could be worth trying, but kind of goes against the idea of the hover treatment reinforcing the interaction. |
…tion-colors-82294 # Conflicts: # packages/components/CHANGELOG.md
Drop the thicker underline on hover and press from Link and ExternalLink, following review feedback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The PR now only applies the underline color change. No thickness changes, no hover/focus changes. IMO it's a subtle improvements, especially if/when the link text color change on hover/focus will be slightly more noticeable (see #82294). I suggest we merge this, and come back to it if it doesn't work out. |






Extracted from #82294. This change can land on trunk independently.
What?
Neutral
Linkunderlines take the text color.Why?
A neutral link draws its underline in a gray stroke color (
#8b8b8b), which is fainter than its text (#1e1e1e). A default hypertext underline matches the text color. Neutral links share the color of the surrounding text, so the underline is the only thing that marks them as links.How?
The
Linkunderline usescurrentColor, and the neutral tone no longer overrides it. Brand links already drew the underline in the text color, so they don't change. Underline thickness, hover, and focus styles stay as on trunk, andExternalLinkis unchanged.After review, this PR no longer makes the underline thicker on hover and press.
Testing Instructions
Open Link → Inline in Storybook and select the neutral tone. Check that the underline has the same color as the link text. On trunk, the underline is a lighter gray. Hover the link and check that the underline doesn't change.
Testing Instructions for Keyboard
Tab to the link. Check that it shows the focus ring, as on trunk.
Screenshots
Neutral inline
Linkin Link → Inline, at rest. Hover looks the same as rest on both trunk and this branch.Use of AI Tools
OpenAI Codex extracted the changes from #82294 and ran the checks. Claude Code reduced the scope after review, captured the screenshots, and updated this description.
🤖 Generated with Claude Code