Skip to content

Conversation

@CalmNerd
Copy link

@CalmNerd CalmNerd commented Dec 6, 2025

Description

This PR fixes the tooltip color inconsistency in dark and light modethat happens on any barchart copy icon tooltip. hence, refactors the ChartCopyButton component to use theme-aware color tokens instead of hardcoded colors for better theming support.

Changes

  • refactor(components): replace hardcoded colors with theme tokens in chart copy button tooltip

    Changed the TooltipContent className from bg-black text-white to bg-foreground text-background in the ChartCopyButton component. This ensures the tooltip respects the current theme and provides better consistency across light and dark modes.

Files Changed

  • apps/v4/components/chart-copy-button.tsx

Type of Change

  • Refactor (code improvement without changing functionality)

Testing

  • Verified tooltip displays correctly in light mode
  • Verified tooltip displays correctly in dark mode
  • Verified copy functionality still works as expected

Screenshots

before fix:

image image

after fix:

image image

@vercel
Copy link
Contributor

vercel bot commented Dec 6, 2025

@CalmNerd is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants