Skip to content

Conversation

@SreePujitha01
Copy link

Description

The BM Dashboard page (https://dev.highestgood.com/bmdashboard) did not support dark mode. When dark mode was enabled, the page elements—including charts, dropdowns, and text—remained styled for light mode, causing visibility and contrast issues.
This PR updates the BM Dashboard to fully support dark mode by applying theme-based styles, ensuring consistency across all UI components.

Related PRS (if any)

None

Main changes explained

  • Updated scoped CSS and module files to apply theme-based variables for dark mode.
  • Modified chart components to dynamically adapt colors based on the current theme (dark/light).
  • Fixed dropdown, text, and background color inconsistencies in dark mode.
  • Verified all subpages under the BM Dashboard respond correctly to dark mode toggling.

How to test

  1. Checkout the branch Pujitha_fix_darkmode-support-bmdashboard.
  2. Run:
  3. npm install
  4. npm run start
  5. Clear browser cache/site data.
  6. Log in as an admin user.
  7. Navigate to: Dashboard → BM Dashboard.
  8. Toggle Dark Mode in the app.
  9. Verify:
  10. Background, text, buttons, dropdowns, and charts adapt correctly to dark mode.
  11. Color contrast and text visibility are readable in both light and dark themes.

Screenshots or videos of changes:

image

Note:

  • Ensure you test across all BM Dashboard subcomponents.
  • Validate that dropdowns and charts remain functional and visible.
  • No backend changes are required for this fix.

@netlify
Copy link

netlify bot commented Oct 25, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit ac7c1a5
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/690c31297456ba000861a6a7
😎 Deploy Preview https://deploy-preview-4277--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hemanthvenkat
Copy link

Verified PR by navigating to Dashboard → BM Dashboard and testing Dark Mode. All UI elements — background, text, buttons, dropdowns, and charts — adjust correctly to the dark theme. Color contrast and text remain clearly visible and readable across both light and dark modes. Functionality working as expected.

PR4277.mp4

…sibility

- Add global ThemeManager component for body-level dark mode class management
- Add comprehensive dark mode styles to public/index.css for all UI components
- Improve text visibility with high-contrast white text (#ffffff) in dark mode
- Add text shadows and enhanced color schemes for better readability
- Update BMDashboard.module.css with improved dark mode text visibility
- Fix CSS module policy violations by removing BMDashboard.css imports
- Enhance AutoUpdate component URL handling for test environment compatibility
- Add dark mode styles for cards, forms, tables, modals, navigation, and all interactive elements
- Ensure consistent styling across the entire application
- Support for both 'dark-mode' and 'bm-dashboard-dark' CSS classes for maximum compatibility

Changes include:
- Created ThemeManager.jsx for global theme state management
- Enhanced App.jsx to include ThemeManager component
- Fixed AutoUpdate.jsx URL parsing for test environment
- Improved BMDashboard.module.css with better text contrast
- Removed CSS module violations from UpdateEquipment.jsx and AddEquipmentType.jsx
- Added comprehensive global dark mode styles to public/index.css
- Fixed duplicate CSS selectors and linting issues
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 6, 2025

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.

3 participants