Skip to content

feat(react): theme the autocomplete menu via CSS variables#39

Draft
ocavue wants to merge 1 commit into
masterfrom
ocavue/autocomplete-menu-polish
Draft

feat(react): theme the autocomplete menu via CSS variables#39
ocavue wants to merge 1 commit into
masterfrom
ocavue/autocomplete-menu-polish

Conversation

@ocavue

@ocavue ocavue commented Jun 15, 2026

Copy link
Copy Markdown
Member

The built-in tag / wikilink menu had hardcoded colors, radii, and shadow. Expose them as CSS variables so a host can restyle the menu to match its design system without markup hooks.

autocomplete-menu.module.css now reads (each falling back to the current default):
--meowdown-menu-background, --meowdown-menu-border, --meowdown-menu-radius, --meowdown-menu-shadow, --meowdown-menu-item-radius, --meowdown-menu-item-highlight. The variable list is documented at the top of that file.

(The menu is already flicker-free: fetchItems never clears the current items before a new query resolves, so previous results stay visible during an in-flight search. No code change needed for that.)

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
meowdown Ready Ready Preview, Comment Jun 15, 2026 12:25pm

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 93.56% 1177 / 1258
🔵 Statements 91.04% 1312 / 1441
🔵 Functions 91.74% 289 / 315
🔵 Branches 82.73% 666 / 805
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/react/src/components/autocomplete-menu.module.css 0% 0% 0% 0%
Generated in workflow #139 for commit 81dd54c by the Vitest Coverage Report Action

@ocavue ocavue force-pushed the ocavue/autocomplete-menu-polish branch from 38f7e6e to 81dd54c Compare June 15, 2026 12:24
@ocavue ocavue changed the title feat(react): make the autocomplete menu themeable and flicker-free feat(react): theme the autocomplete menu via CSS variables Jun 15, 2026
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