Skip to content

Commit 116a925

Browse files
committed
fix(web): use dedicated diff header button variant
1 parent f5081b0 commit 116a925

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/web/src/components/DiffFileHeaderActionButton.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export function DiffFileHeaderActionButton({
2424
<Button
2525
ref={ref}
2626
size="icon-micro"
27-
variant="ghost"
28-
className="text-muted-foreground [:hover,[data-pressed]]:bg-transparent disabled:pointer-events-auto disabled:cursor-not-allowed"
27+
variant="diff-header"
2928
aria-label={ariaLabel}
3029
disabled={disabled}
3130
onClick={onClick}

‎apps/web/src/components/ui/button.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ const buttonVariants = cva(
4242
"not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-destructive/90",
4343
"destructive-outline":
4444
"border-input bg-popover not-dark:bg-clip-padding text-destructive-foreground shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/32 [:hover,[data-pressed]]:bg-destructive/4",
45+
"diff-header":
46+
"[--control-icon-color:var(--contrast-muted-foreground)] border-transparent text-muted-foreground [:hover,[data-pressed]]:bg-transparent disabled:pointer-events-auto disabled:cursor-not-allowed",
4547
ghost:
4648
"[--control-icon-color:var(--contrast-muted-foreground)] border-transparent text-foreground data-pressed:bg-accent [:hover,[data-pressed]]:bg-accent",
4749
"ghost-muted":

0 commit comments

Comments
 (0)