Repository navigation
fix(frontend): scope dark hover bg to class-based dark mode (#960) - #974
Merged
Merged
Conversation
The custom CSS for `dark:hover:bg-gray-750` in Agents.vue was wrapped in `@media (prefers-color-scheme: dark)`, but the app uses `darkMode: 'class'`. A user with OS dark mode and the app on the light theme triggered the dark hover anyway, producing an unreadable dark band on row hover. Promote `gray-750` to a real Tailwind utility via the config palette extension. The generated `dark:hover:bg-gray-750` then resolves through the class strategy and the manual `@media` block is no longer needed. Also unblocks `QueueList.vue` which referenced the same utility but silently rendered nothing because it had no scoped CSS definition. Related to #960 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Resolve by running |
vybe
approved these changes
Jun 2, 2026
vybe
left a comment
Contributor
There was a problem hiding this comment.
Validated: correct root-cause fix (class-based dark mode), Playwright matrix covers the OS-dark/app-light bug case, security clean. APPROVE.
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.
Summary
Fixes the dark hover band that appeared on Agents list rows when the OS was in dark mode but the app theme was set to light.
src/frontend/src/views/Agents.vuedefineddark:hover:bg-gray-750inside@media (prefers-color-scheme: dark), but the app's Tailwind config usesdarkMode: 'class'. OS dark + app light triggered the dark hover anyway, covering the row in an unreadable navy band.gray-750to a real Tailwind utility via the config palette extension. The generateddark:hover:bg-gray-750now resolves through:is(.dark *)and respects the app's theme class strategy.@media (prefers-color-scheme: dark)block — no longer needed.QueueList.vuereferenced the samedark:hover:bg-gray-750class but silently rendered nothing (no scoped CSS definition there). It now picks up the real utility.Related to #960
Test plan
Verified in browser via Playwright (headless Chromium,
colorSchemecontext to emulate OS preference):rgb(255,255,255), hoverrgb(249,250,251)(gray-50). PASShtmlcarries nodarkclass, row staysrgb(255,255,255)at rest, hovers torgb(249,250,251). No dark artifact. PASSrgb(31,41,55)(gray-800), hoverrgb(42,48,60)(gray-750). Subtle darker hover preserved. PASS.dark\:hover\:bg-gray-750:hover:is(.dark *)— broken@mediarule is gone.🤖 Generated with Claude Code