Skip to content

fix(ui): menu highlight uses neutral state bg, not accent - #579

Merged
Astro-Han merged 1 commit into
mainfrom
fix/menu-highlight-neutral
Jul 6, 2026
Merged

Astro-Han merged 1 commit into
mainfrom
fix/menu-highlight-neutral

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

The Base UI Menu primitive copied shadcn's `data-highlighted:bg-accent`
recipe verbatim. In stock shadcn --accent is a neutral hover gray, but
Maka defines --accent as the product blue reserved for emphasis, so every
menu hover painted blue — clashing with palette/search rows and the rest
of the app, which highlight list rows with --state-selected-bg.

Switch every menu item state (highlighted + submenu-open) to
bg-[var(--state-selected-bg)] and drop the accent-foreground text recolor
(neutral tint needs no contrast swap). Add a contract pinning the recipe
so the shadcn default can't leak back.

#546
@Astro-Han
Astro-Han merged commit 994809d into main Jul 6, 2026
@Astro-Han
Astro-Han deleted the fix/menu-highlight-neutral branch July 6, 2026 15:22
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