fix(dashboard): use opaque background and readable text color on cost chart tooltips - #11960
Merged
diegosouzapw merged 2 commits intoAug 30, 2026
Merged
Conversation
… chart tooltips The three Recharts tooltips in CostCharts.tsx (ProviderSpendCard, CostTrendCard, WeeklyPatternCard) used var(--surface) for background which can be transparent on dark themes and had no explicit text color, making tooltip content unreadable when it blended with the chart bars. Align the tooltip contentStyle with the pattern already used in ProviderCharts.tsx: backgroundColor via var(--color-surface), borderColor via var(--color-border), color via var(--color-text-main), and boxShadow via var(--shadow-soft).
diegosouzapw
merged commit Aug 30, 2026
8f38dcd
into
diegosouzapw:release/v3.8.51
14 of 15 checks passed
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
… chart tooltips (diegosouzapw#11960) Fix de contraste no tooltip do gráfico de custos (fundo opaco + cor de texto legível). Mudança isolada de CSS/classe, validada no worktree combinado. Obrigado!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The three Recharts tooltips in
CostCharts.tsx(ProviderSpendCard,CostTrendCard,WeeklyPatternCard) usedvar(--surface)for background which resolves to a transparent value, and had no explicit textcolorproperty — making tooltip content unreadable in both light and dark mode. The text color defaults to the chart series color, so it blends into the tooltip background.Most visible on the Weekly Usage Pattern card where the purple bar color (
#8b5cf6) matched the default tooltip text.Fix
Align the tooltip
contentStylewith the pattern already used inProviderCharts.tsx:backgroundColor:var(--color-surface)(opaque)borderColor:var(--color-border)color:var(--color-text-main)(ensures readable text)boxShadow:var(--shadow-soft)Applied consistently to all three chart tooltips in the file.
Changed files
src/app/(dashboard)/dashboard/costs/components/CostCharts.tsx