Repository navigation
Replace opacity: 0.9 hover with --primary-hover on 8 buttons - #2764
Merged
Merged
Conversation
Eight filled hsl(var(--primary)) buttons used opacity: 0.9 for hover, making them translucent (letting the background bleed through) and theme-blind (the fade direction flips between light and dark since it fades toward the surface color rather than using the dedicated token). Replaces each hover declaration with background: hsl(var(--primary-hover)), matching the property used in each site's own base rule. Disabled-state opacity declarations (chat-input send button, query-node-viewer new-instance button, onboarding primary button) are left untouched — they're a distinct affordance. Sites: model-manager, chat-input, collection-node-viewer, query-node-viewer (x2), ai-chat-pty-session, query-editor, onboarding-wizard. Closes #2690 Co-Authored-By: Claude Sonnet 5 <[email protected]>
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
Eight filled
hsl(var(--primary))buttons usedopacity: 0.9for hover, which makes the button translucent (whatever sits behind it shows through) and theme-blind (fading toward the surface color flips direction between light/dark). Replaces each hover declaration withbackground: hsl(var(--primary-hover))— the documented token idiom established by #2673/#2685 — matching the property (background) each site's own base rule already uses.Sites fixed
settings/model-manager.svelte—.btn--primary:hover:not(:disabled)chat/chat-input.svelte—.send-button:not(:disabled):hoverviewers/collection-node-viewer.svelte—.retry-button:hoverviewers/query-node-viewer.svelte—.retry-button:hoverAND.new-instance-button:hover:not(:disabled)viewers/ai-chat-pty-session.svelte—.launch-button:hover:not(:disabled)query/query-editor.svelte—.btn-save:hoveronboarding/onboarding-wizard.svelte—.primary-button:hover:not(:disabled):disabled { opacity: ... }declarations (chat-input's send button, query-node-viewer's new-instance button, onboarding's primary button) are untouched — separate, legitimate affordance.Note on the orphaned
transition: opacitycleanupThe issue predicted removing dead
transition: opacity 0.15s easerules (e.g.query-editor.svelte) would shrink the design-token baseline. Verified none of the 8 files in this worktree actually carry atransition: opacitydeclaration anymore — grepped all 7 changed files fortransition, zero hits. So there was nothing to remove, and the baseline stays at 50 (unchanged), which is the correct outcome given that finding, not a fix defect.Verification
bun run test: 256 files / 5226 tests passed, before and after.bun run quality:design-tokens(frompackages/desktop-app): 50 known violations before, 50 after — unchanged (see note above).NODESPACE_HOME+ headless Playwright against the real dev-proxy/daemon stack:model-manager.svelte"Add provider" button: restbackground: rgb(29, 149, 137)(--primary, opacity 1) → hoverbackground: rgb(24, 123, 114)(--primary-hover, opacity 1). Matches the computed hsl(174 67% 29%) exactly.chat-input.sveltesend button: disabled rest keepsopacity: 0.4(untouched); once enabled, restbackground: rgb(29, 149, 137)opacity 1 → hoverbackground: rgb(24, 123, 114)opacity 1.--primary-hovertoken, not an opacity fade.diagnostic-panel.svelte:264, confirmed out of scope — an unrelated hint-text style), the--primary-hovertoken definition in both themes, and independently re-measured the design-token baseline (50 → 50) — APPROVE.Closes #2690
🤖 Generated with Claude Code