fix(sidebar): invert glyph, draft pencil, and DM status on active row (LC-576) #547
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/lc576-active-row-invert"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
On the active sidebar row (solid accent fill from LC-569), the leading
#/speaker glyph, the draft pencil, and the DM custom-status line stayed on their resting grey instead of inverting with the row. The#on saturated accent was both visually wrong and a contrast failure. This inverts all three to--accent-content, de-emphasized with opacity rather than a fixed grey.Why the fix is in CSS, not the templates
.lc-room-row-activesetscolor: var(--accent-content), which reaches descendants only by inheritance. Those three descendants set their own colour with a Tailwind utility (text-content-subtle/text-content-muted), and a bare utility (specificity 0,1,0) beats an inherited value. A descendant selector.lc-room-row-active .text-content-subtle(0,2,0) outranks the utility, so resting-state markup is untouched and only the active row inverts. No template churn, no!important.opacity: 0.75matches the prototype and preserves the hierarchy (glyph quieter than the room name).Scope
The only descendants of the active
<a>carrying these utilities are the three intended targets (glyph, draft pencil, DM status). The mark-read / star / move-to-category action buttons are siblings outside the<a>, so they keep theirmd:opacity-0hover-reveal behaviour. The mention badge (self-contained danger pill) and the unread count pill (already inverted explicitly) are unaffected.Gallery
dev/theme_gallery.html: the mirrored active row hardcodedstyle="opacity:.75"on the glyph instead of reproducing the realtext-content-subtlemarkup, which is why the gallery did not surface this bug. Mirroring the real class makes the gallery catch this class of regression.Verification
cargo checkclean./dev/theme-galleryacross all 7 palettes x 4 modes: the active-row#glyph and draft pencil invert to accent-content (de-emphasized) while resting rows keep grey; count pill inversion and mention badge unchanged.Closes LC-576.
🤖 Generated with Claude Code
https://claude.ai/code/session_01GJbJChgMXj7m1Q8GdnTPyT