Repository navigation
Conversation
🤖 PR meta 🤖📦 Bundle sizeSize Change: -377 B (0%) Total Size: 8.65 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. default to a list of pages if there are no menus in
|
|
The code changes look good to me, they fix the wrapping while preserving the default underline behavior. The main aspect is compat: consumers with overrides can lose icon sizing or vertical positioning, and anchor-level underlines can now extend beneath the arrow. The woo example looks minor, but we can't assume every consumer's overrides will be affected as lightly. Would a breaking CHANGELOG entry be enough? |
To be honest I'm leaning towards a won't-fix here, for a couple reasons:
If that sounds acceptable for now, I can close this and the original issue. Of course, always open to revisiting later. |
|
Agreed, we should encourage consumers to refactor to |
Closes #84761
What?
Keep the
ExternalLinknew-tab indicator with the preceding text when the link wraps.Addresses the
ExternalLinkportion of #84761, separately from theLinkfix in #84806.Why?
The indicator can wrap onto a line by itself because it is an inline-block. Adding a non-breaking character before that box still permits orphaning in Chromium.
How?
Remove the indicator's inline-block declaration and generate a U+2060 WORD JOINER before its existing arrow text. The existing text wrapper already scopes the default underline to the link text. The markup, class names, arrow text, accessible notice, and click handling remain unchanged.
This changes how consumer style overrides affect the indicator. When the icon is inline, width, height, and vertical margins no longer size or position its box. Underlines applied to the entire anchor can also extend beneath the arrow. An override that explicitly restores inline-block retains its previous layout and wrapping behavior. These compatibility effects are included here for separate assessment.
Testing Instructions
訪問者が検索する用語とフレーズin the children control and confirm the arrow stays with the final character..components-external-link:hover { text-decoration: underline; }in DevTools and hover the link. The arrow now receives the anchor's underline as well..components-external-link__icon. Compare with an explicitdisplay: inline-blockoverride, which restores those box dimensions and the original wrapping behavior.Screenshots or screencast