Skip to content
Open
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
8 changes: 7 additions & 1 deletion packages/app/src/components/session/session-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,18 @@ export function SessionHeader() {
triggerAs={Button}
triggerProps={{
variant: "secondary",
class: "rounded-sm w-[60px] h-[24px]",
class: "rounded-sm w-[60px] h-[24px] hover:bg-surface-raised-base-hover",
classList: { "rounded-r-none": shareUrl() !== undefined },
style: { scale: 1 },
}}
trigger={language.t("session.share.action.share")}
>
<input
type="text"
autofocus
style="position:absolute; left:-10000px; width:1px; height:1px; opacity:0;"
aria-hidden="true"
/>
<div class="flex flex-col gap-2">
<Show
when={shareUrl()}
Expand Down
5 changes: 4 additions & 1 deletion packages/ui/src/components/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@
color: var(--icon-invert-base);
}

/* Clear, darker hover fill for primary button */
&:hover:not(:disabled) {
background-color: var(--icon-strong-hover);
/* Subtler darken on hover to avoid overly dark button */
background-color: color-mix(in oklab, var(--button-primary-base) 75%, black 25%);
transition: background-color 100ms ease;
}
&:focus:not(:disabled) {
background-color: var(--icon-strong-focus);
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/components/icon-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
}

&:hover:not(:disabled) {
background-color: var(--icon-strong-hover);
/* Align hover color with primary button hover to keep consistency */
background-color: color-mix(in oklab, var(--button-primary-base) 75%, black 25%);
}
&:focus:not(:disabled) {
background-color: var(--icon-strong-focus);
Expand Down
Loading