fix: use correct CSS variables for drawer dark mode support #6

Merged
cpfarhood merged 1 commits from fix/drawer-dark-mode into main 2026-02-12 04:25:02 +00:00
cpfarhood commented 2026-02-12 04:22:12 +00:00 (Migrated from github.com)

Summary

Fixes white drawer background in dark mode by using the correct MUI CSS variable.

Changes

  • Changed drawer backgroundColor from var(--mui-palette-background-paper) to var(--mui-palette-background-default)
  • Removed unnecessary fallback values that were preventing theme variables from resolving correctly
  • Cleaned up other inline styles to use simpler CSS variable references

Testing

Build succeeds

The drawer should now properly adapt to dark mode with the same background color as the rest of the Headlamp UI.

🤖 Generated with Claude Code

## Summary Fixes white drawer background in dark mode by using the correct MUI CSS variable. ## Changes - Changed drawer `backgroundColor` from `var(--mui-palette-background-paper)` to `var(--mui-palette-background-default)` - Removed unnecessary fallback values that were preventing theme variables from resolving correctly - Cleaned up other inline styles to use simpler CSS variable references ## Testing Build succeeds ✅ The drawer should now properly adapt to dark mode with the same background color as the rest of the Headlamp UI. 🤖 Generated with [Claude Code](https://claude.ai/code)
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: privilegedescalation/headlamp-polaris-plugin#6