Skip to content

🐛 fix: let custom textColor reach linked ranking names - #38

Merged
canisminor1990 merged 1 commit into
masterfrom
fix/ranking-link-text-color
Nov 26, 2026
Merged

canisminor1990 merged 1 commit into
masterfrom
fix/ranking-link-text-color

Conversation

@Innei

@Innei Innei commented Oct 16, 2026

Copy link
Copy Markdown
Member

Problem

In BenchmarkRankingChart, nameLink set color: colorText !important. That beats the inline style={{ color: textColor }} on the <A>, so a custom textColor never reached names that have an href. Names without a link already used it.

Fix

Drop the !important on the base color, so the inline textColor wins. The hover color keeps its !important, so hover feedback still shows over a custom color. This is the same behavior as BenchmarkScatterChart, where links inherit the wrapper's textColor.

@lobe-tsukumo

lobe-tsukumo Bot commented Oct 16, 2026

Copy link
Copy Markdown

👍 @Innei

Thank you for raising your pull request and contributing to our Community.
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.

非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T12:22:22.902930Z 56e5219 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Oct 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@lobehub/charts@38

commit: 56e5219

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@canisminor1990
canisminor1990 merged commit b3e3196 into master Nov 26, 2026
4 checks passed
@lobe-tsukumo

lobe-tsukumo Bot commented Nov 26, 2026

Copy link
Copy Markdown

❤️ Great PR @Innei ❤️

The growth of project is inseparable from user feedback and contribution, thanks for your contribution!

项目的成长离不开用户反馈和贡献,感谢您的贡献!

lobe-tsukumo Bot pushed a commit that referenced this pull request Nov 26, 2026
### [Version&nbsp;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">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobe-tsukumo

lobe-tsukumo Bot commented Nov 26, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 6.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

This branch was successfully deployed

1 active deployment
Preview — 56e52193 Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants