Repository navigation
fix(mosaic): use the neutral color for menus, close buttons and the You badge #10494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@clerk/mosaic': patch | ||
| --- | ||
|
|
||
| Ellipsis menus, the dialog and card close buttons, the Cancel buttons in the confirmation, delete and rename dialogs, and the reverification Back button and resend and help links use the neutral color instead of the brand color, and the "You" badge in the members table is neutral. Field labels use the neutral text color, and disabled inputs and tag inputs are tinted with the neutral color. Email and phone values in the user profile use the primary text color. An interactive row's icon darkens fully on hover, and an outlined interactive row firms up its border on hover. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,6 +80,7 @@ const Root = React.forwardRef<HTMLDivElement, ItemProps>(function MosaicItem( | |
| slots.item[size], | ||
| variant === 'outline' && slots.item.outline, | ||
| interactive && slots.item.interactive, | ||
| interactive && variant === 'outline' && slots.item.interactiveOutline, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| xstyle, | ||
| ), | ||
| rest, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preserve the default border color for interactive outline rows.
slots.item.outlinesetsborderColorto--cl-color-border. The laterinteractiveOutlinestyle setsdefault: null, which clears that declaration in StyleX. The border then falls back to its initial/current-color behavior in the resting and disabled states. The hover rule assigns the same--cl-color-bordertoken, so it does not create the requested firmer hover state. (raw.githubusercontent.com)Keep a real default border color and use a distinct stronger value for hover, preferably in one
borderColordeclaration or through a StyleX variable.