Skip to content

fix(desktop): keep the palette's selected row in view with the neutral fill - #4295

Merged
LHagfoss merged 1 commit into
mainfrom
fix/desktop-palette-selection
Nov 23, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
fix/desktop-palette-selection

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

  • Pressing ↓ past the visible results moved the command palette's selection off-screen: the list never scrolled. The list now scrolls the selected row into view (block: "nearest") whenever the selection changes, and focus stays in the search field.
  • The selected row was tinted bg-accent/16 with an accent icon. docs/design.md gives a keyboard-driven list's selected index "the same bg-fill" and highlights menus with bg-fill "(not accent)", so the row now uses bg-fill and its icon turns text-fg. The result row joins the design test's allowlist of list rows whose fill marks state.

Changelog

The command palette keeps the selected result in view while you arrow through it, and highlights it in the neutral fill.

Testing

  • bun run check in apps/desktop: passed.
  • Mock window: searched settings, pressed ↓ twelve times; the last result is selected, in view and filled neutral.

@github-actions github-actions Bot added the fix A bug fix label Nov 23, 2026
@LHagfoss
LHagfoss merged commit 9d11551 into main Nov 23, 2026
10 checks passed
@LHagfoss
LHagfoss deleted the fix/desktop-palette-selection branch November 23, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants