-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
chore: updated pills text and badge group behaviour #7997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the BadgeGroup component to improve external link handling and updates pills text for better clarity. The changes focus on replacing the arrow icon for external links and simplifying badge labels.
- Updated BadgeGroup to show an up-right arrow icon specifically for external links (target="_blank")
- Changed badge text from "Node.js LTS" to "Latest LTS" and "Node.js Current" to "Latest Release"
- Added logic to automatically set target="_blank" for external URLs in withBadgeGroup component
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
packages/ui-components/src/Common/BadgeGroup/index.tsx | Updated icon import and conditional rendering logic for external link indicators |
apps/site/pages/en/index.mdx | Simplified badge text labels for Node.js releases |
apps/site/components/withBadgeGroup.tsx | Added automatic external link detection and target="_blank" assignment |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #7997 +/- ##
==========================================
- Coverage 73.15% 73.13% -0.02%
==========================================
Files 95 95
Lines 8354 8354
Branches 218 218
==========================================
- Hits 6111 6110 -1
- Misses 2242 2243 +1
Partials 1 1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Lighthouse Results
|
This PR is a small change on our pills for BadgeGroup and the Changelog Badges as discussed on Slack (https://openjs-foundation.slack.com/archives/CVAMEJ4UV/p1752848215272629)
Requesting fast-track as this is a small yet convenient change and we cna always iterate if we're unhappy with it cc @nodejs/nodejs-website