saas-js/saas-ui

Chart Tooltip Doesn't Allow for Theming

benmcginnis opened this issue · 2 comments

Description

We have a custom tooltip theme that uses a dark background, but because the tooltip explicitly sets the "muted" token for the color of the metric name via a prop, we can't easily override the theming, leading to unreadable text.

See screenshot:
image (8)

Can this be refactored into a theme setting rather than using a style prop?

Version number of charts is 0.11.3

Link to Reproduction

No response

Steps to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Saas UI Version

2.8.8

Chakra UI Version

2.8.2

Browser

Arc 1.59 (Chromium 128)

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

Will change this to use a css variable color="var(--tooltip-fg-muted, var(--chakra-colors-muted))" that you can overwrite in the theme.

3eed648