Repository navigation
Conversation
🤖 PR meta 🤖📦 Bundle sizeSize Change: +110 B (0%) Total Size: 8.01 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
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe Menu external-link indicator now renders an external-link icon for links that open in a new tab. Its CSS uses inline-flex alignment, and the changelog records the enhancement. ChangesMenu external-link indicator
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This localized UI change replaces the new-tab arrow with an external-link icon without changing link behavior or accessibility semantics; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Comment |
|
@WordPress/gutenberg-design I opened a PR so you can understand better if we should go ahead with the change. I see three options:
|
|
No strong opinion between 2 or 3, but I hope we can avoid 1 🙈 We should align on a single symbol (icon/glyph, doesn't matter) and use it everywhere. |
|
A subtle discussion, and now a PR. Your speed is hard to keep up with, thank you for all the contributions! Let's unpack this one, though:
To be clear, this is what I mean about menu's icon slot, shown here on the right in the legacy menu:
So until we change the general guidance and have stroke-based icons that could better let us use icons (not glyph) inline in text, I think we should maintain the current guidelines of differentiating between block level and inline as the rule for when to use the |
I think this will invite a lot of complexity. Someone could go and create Frankenstein's MenuItem and expect it to look good. A possible MenuItem combo: |
I second this concern. It opens the door to creating visually noisy menus. To @jasmussen's point and with the new menu structure in mind, I would say that the external symbol as an icon in menu item doesn't make much sense when the glyph version exists for inline text. Because of that, I'm drawn to keep all three components to use the ↗ character |
|
Given that the new menu usually expects icons before the label, my preference is also to continue using the I'm going to close this PR for now, we can always re-discuss in the future |

#82321 (comment)
What?
Replaces the arrow glyph shown by
Menu.LinkItemfor new-tab links with the 16pxexternalicon from@wordpress/icons. The icon remains inline after the item label.Why?
The text arrow suits links in prose, while menu items generally use the icon treatment. This PR tries the alternative proposed in the linked discussion.
How?
Renders
Iconinside the existing accessible new-tab indicator and removes the glyph-specific pseudo-element styles. The link target and accessible name do not change.Testing Instructions
Testing Instructions for Keyboard
Screenshots
For reference,
LinkandLinkButtoncomponents:Use of AI Tools
Assisted by Codex.
Summary by CodeRabbit