Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/mosaic-menu-item-color.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

Menu items now use the secondary foreground color at rest and the primary foreground color on hover, matching the `UserButton` menu rows.
7 changes: 7 additions & 0 deletions packages/mosaic/src/components/menu/menu.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ export const item = stylex.create({
':hover': colorVars['--cl-color-neutral-alpha-100'],
},
},
color: {
default: colorVars['--cl-color-foreground-secondary'],
':is([data-active])': colorVars['--cl-color-foreground'],
'@media (hover: hover)': {
':hover': colorVars['--cl-color-foreground'],
},
},
cursor: { default: 'pointer', ':is([data-disabled])': 'not-allowed' },
display: 'flex',
// The viewport is a height-capped flex column: without this the rows squash to fit the cap
Expand Down
Loading