Skip to content

Charts - update for dark theme support #7188

@evwilkin

Description

@evwilkin

Design review confirmed many colors in the charts package were built to work well in both light & dark themes, however the following issues need to be reviewed & addressed:

  • Axis lines & labels not converting
  • Text not working - doesn’t use PF variables
  • Per @dlabrecq there are popovers/tooltips that need attention, we will need to collaborate to track those down and review what's needed/if they have customized styling causing them to break
Relevant PF-Core files:
Here is a list of files within **react-charts/src** which import from **react-tokens**, with **/react-charts/src/components/ChartTheme/themes/base-theme.ts** looking to be the largest resource:
./components/ChartTheme/styles/scatter-styles.ts
./components/ChartTheme/styles/bullet-styles.ts
./components/ChartTheme/styles/donut-utilization-styles.ts
./components/ChartTheme/styles/legend-tooltip-styles.ts
./components/ChartTheme/styles/common-styles.ts
./components/ChartTheme/styles/donut-styles.ts
./components/ChartTheme/examples/ChartTheme.md
./components/ChartTheme/themes/bullet-theme.ts
./components/ChartTheme/themes/donut-utilization-theme.ts
./components/ChartTheme/themes/threshold-theme.ts
./components/ChartTheme/themes/axis-theme.ts
./components/ChartTheme/themes/base-theme.ts
./components/ChartTheme/themes/donut-theme.ts
./components/ChartTheme/themes/donut-threshold-theme.ts
./components/ChartTheme/themes/light/cyan-color-theme.ts
./components/ChartTheme/themes/light/gold-color-theme.ts
./components/ChartTheme/themes/light/purple-color-theme.ts
./components/ChartTheme/themes/light/blue-color-theme.ts
./components/ChartTheme/themes/light/gray-color-theme.ts
./components/ChartTheme/themes/light/orange-color-theme.ts
./components/ChartTheme/themes/light/green-color-theme.ts
./components/ChartTheme/themes/light/multi-color-unordered-theme.ts
./components/ChartTheme/themes/light/multi-color-ordered-theme.ts
./components/ChartTheme/themes/dark/cyan-color-theme.ts
./components/ChartTheme/themes/dark/gold-color-theme.ts
./components/ChartTheme/themes/dark/purple-color-theme.ts
./components/ChartTheme/themes/dark/blue-color-theme.ts
./components/ChartTheme/themes/dark/gray-color-theme.ts
./components/ChartTheme/themes/dark/orange-color-theme.ts
./components/ChartTheme/themes/dark/green-color-theme.ts
./components/ChartTheme/themes/dark/multi-color-unordered-theme.ts
./components/ChartTheme/themes/dark/multi-color-ordered-theme.ts
./components/Chart/Chart.tsx
./components/ChartThreshold/examples/ChartThreshold.md
./components/ChartUtils/chart-interactive-legend.ts
./components/ChartUtils/chart-tooltip.ts
./components/ChartTooltip/examples/ChartTooltip.md
./components/ChartLegend/examples/ChartLegend.md

Sample screenshot:
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions