Aditya-Fix: Improve dark mode text contrast in Total Org Summary statistics cards#4506
Merged
one-community merged 1 commit intodevelopmentfrom Dec 7, 2025
Conversation
…contrast - Convert StatisticsTab.css to StatisticsTab.module.css to comply with pre-commit hook requirements - Update component to use CSS module styles object instead of global class names - Convert class names from kebab-case to camelCase (statistics-tab-holder -> statisticsTabHolder) - Use :global() selectors for dark mode overrides following TotalOrgSummary.module.css pattern - Keep statistics card text black in dark mode for proper contrast with light card backgrounds - Override white text color rule specifically for card content while maintaining section headers as white - Fixes readability issue where white text on light backgrounds caused poor contrast in dark mode
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Member
|
Thank you all, merging! |
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.






Description
Fixes critical readability issue in Total Org Summary page where statistics card text became unreadable in dark mode due to poor contrast (white text on light card backgrounds). Also converts

StatisticsTabcomponent to CSS modules to comply with pre-commit hook requirements.Key Fix: Statistics card text now remains black in dark mode for proper contrast, while section headers remain white for theme consistency.
Related PRs
Main Changes
Files Modified
src/components/TotalOrgSummary/StatisticsTab/StatisticsTab.module.css(renamed from.css):global()syntax for cross-module referencessrc/components/TotalOrgSummary/StatisticsTab/StatisticsTab.jsximport styles from './StatisticsTab.module.css'classNamestrings withstyles.classNamereferencesImplementation Details
:global(.bg-oxford-blue)with higher specificity to override white text rule fromTotalOrgSummary.module.cssline 17.statisticsTabHoldercombined with element types to ensure proper cascadeHow to Test
Aditya-fix/dark-mode-statistics-card-text-contrastrm -rf node_modules && yarn cache cleanyarn installand start the app:yarn start:localScreenshots
BeforeVideo.mov
AfterVideo.mov
Notes
.module.cssfile requirement