Skip to content

fix: remove duplicate sidebar CSS variables in dark mode - #591

Closed
nyxsky404 wants to merge 2 commits into
gopaljilab:mainfrom
nyxsky404:fix/remove-duplicate-sidebar-css-vars
Closed

nyxsky404 wants to merge 2 commits into
gopaljilab:mainfrom
nyxsky404:fix/remove-duplicate-sidebar-css-vars

Conversation

@nyxsky404

Copy link
Copy Markdown
Contributor

Description

Removes the first (dead) set of --sidebar-* CSS custom properties in the .dark block of index.css. These were immediately overridden by a second set with different values within the same selector, making the first set unreachable dead code.

Related Issue

Fixes #577

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update
  • 🎨 Style / UI improvement
  • ♻️ Refactor (no functional changes)
  • ⚡ Performance improvement
  • 🧪 Test addition or update
  • 🔧 Chore / Tooling / Config

Changes Made

  • Removed the first set of --sidebar, --sidebar-foreground, --sidebar-border, --sidebar-ring, --sidebar-primary, --sidebar-primary-foreground, --sidebar-accent, --sidebar-accent-foreground declarations that were overridden by the second set

Testing

  • I have tested these changes locally
  • All existing tests pass

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code where necessary
  • I have updated the documentation if needed

@gopaljilab gopaljilab closed this Jun 2, 2026
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] Dark mode CSS has duplicate sidebar variables — first set is dead code

2 participants