Repository navigation
🐛 fix: let custom textColor reach linked ranking names - #38
Conversation
|
👍 @Innei Thank you for raising your pull request and contributing to our Community. 非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 56e521936e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| font-weight: 600; | ||
| line-height: 1.3; | ||
| color: ${cssVar.colorText} !important; | ||
| color: ${cssVar.colorText}; |
There was a problem hiding this comment.
Preserve the override for unhighlighted links
When an item has href but is not highlighted, no inline color is supplied, so this non-important declaration now competes with the <A> component’s own link-color styling and can render the name as a standard link instead of colorText, unlike the adjacent unlinked names. The other <A> integrations that require label coloring retain an important override (src/BarList/styles.ts:40-47 and src/BenchmarkScatterChart/styles.ts:93-98); preserve an important base override here while passing the highlight through inheritance or a custom property.
Useful? React with 👍 / 👎.
|
❤️ Great PR @Innei ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! 项目的成长离不开用户反馈和贡献,感谢您的贡献! |
### [Version 6.1.1](v6.1.0...v6.1.1) <sup>Released on **2026-11-26**</sup> #### 🐛 Bug Fixes - **misc**: Let custom textColor reach linked ranking names. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Let custom textColor reach linked ranking names, closes [#38](#38) ([b3e3196](b3e3196)) </details> <div align="right"> [](#readme-top) </div>
|
🎉 This PR is included in version 6.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Problem
In
BenchmarkRankingChart,nameLinksetcolor: colorText !important. That beats the inlinestyle={{ color: textColor }}on the<A>, so a customtextColornever reached names that have anhref. Names without a link already used it.Fix
Drop the
!importanton the base color, so the inlinetextColorwins. The hover color keeps its!important, so hover feedback still shows over a custom color. This is the same behavior asBenchmarkScatterChart, where links inherit the wrapper'stextColor.