Skip to content

fix(cm): end the search-button hover colour chain in a literal fallback - #485

Merged
mtskf merged 1 commit into
mainfrom
worktree-bg-hover-fallback
Nov 9, 2026
Merged

mtskf merged 1 commit into
mainfrom
worktree-bg-hover-fallback

Conversation

@mtskf

@mtskf mtskf commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

The .cm-panel.cm-search .cm-button:hover background chain ended in a variable with no literal behind it, so a host emitting neither token painted no hover surface. It now terminates in rgba(128, 128, 128, 0.3).

Changes

  • src/webview/cm/theme.ts: add a literal terminal fallback to the hover chain
  • scripts/preview/vscode-theme-palettes.mjs: update the exception note, since the chain now has a working fallback

Related

  • TODO: --vscode-button-hoverBackground has no terminal fallback at its only use site

Test Plan

  • pnpm test:unit green
  • biome check clean on changed files

The chain var(--vscode-button-secondaryHoverBackground, var(--vscode-button-hoverBackground)) had no literal terminal, so a host emitting neither token painted no hover background. Also drop the now-obsolete exception note from the preview palette module.
@mtskf
mtskf merged commit dfa2068 into main Nov 9, 2026
2 checks passed
@mtskf
mtskf deleted the worktree-bg-hover-fallback branch November 9, 2026 23:47
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.

1 participant