Skip to content

Fix invisible chart legend text in light mode (#192)#257

Open
dikshajangra12918-oss wants to merge 1 commit into
thetechguardians:mainfrom
dikshajangra12918-oss:fix/192-legend-light-mode-contrast
Open

Fix invisible chart legend text in light mode (#192)#257
dikshajangra12918-oss wants to merge 1 commit into
thetechguardians:mainfrom
dikshajangra12918-oss:fix/192-legend-light-mode-contrast

Conversation

@dikshajangra12918-oss

Copy link
Copy Markdown

Fixes #192

Chart legend text was hardcoded to a light-gray color (#cbd5e1), which is unreadable on the light-mode background. Replaced it with a getChartTextColor() helper that reads the existing --text CSS variable, so legends now follow whichever theme is active — matching the pattern already used for the map tile layer. Also added a themechange listener so charts already on screen update instantly if the user toggles theme mid-session.

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.

BUG: Chart legend text invisible in light mode on Analysis page

1 participant