Skip to content

feat(autocomplete): add configurable headers for recent searches and suggestions#80

Open
sarahdayan wants to merge 1 commit intofeat/theme-agentfrom
feat/headers
Open

feat(autocomplete): add configurable headers for recent searches and suggestions#80
sarahdayan wants to merge 1 commit intofeat/theme-agentfrom
feat/headers

Conversation

@sarahdayan
Copy link
Member

@sarahdayan sarahdayan commented Mar 12, 2026

Summary

Recent searches and Query Suggestions now support configurable section headers, letting users label each section in the autocomplete dropdown.

Section headers are fully themeable with independent controls for color, opacity, font size, font weight, margins (top/bottom/left/right), text transform, and letter spacing. The left/right margins allow visually aligning headers with item content. All presets have been updated with header styles that match their character.

Also removes dead CSS targeting AutocompleteIndexHeaderTitle and AutocompleteIndexHeaderLine elements that were never rendered in the DOM.

Capture d’écran 2026-03-12 à 16 27 29 Capture d’écran 2026-03-12 à 16 27 36

@sarahdayan sarahdayan requested a review from dhayab as a code owner March 12, 2026 15:23
…suggestions

Add section header support to the autocomplete widget with granular
theming controls. Recent searches and query suggestions now have
dedicated config fields with header templates. The theme system gets
new header variables for color, font, spacing, text-transform, and
letter-spacing, replacing the old hardcoded panel-gap-based margins
and removing dead CSS for non-existent DOM elements.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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