Skip to content

Commit 66c834e

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
refactor(emcn): keep Button hover variant self-contained
1 parent bac801d commit 66c834e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/emcn/src/components/button/button.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { type ButtonHTMLAttributes, forwardRef } from 'react'
22
import { cva, type VariantProps } from 'class-variance-authority'
33
import { cn } from '../../lib/cn'
4-
import { chipHoverSurfaceClass } from '../chip/chip-chrome'
54

65
/**
76
* `size='icon'` is the square 20px icon-only button — a chip field's trailing
@@ -41,7 +40,8 @@ const buttonVariants = cva(
4140
tertiary:
4241
'bg-[var(--brand-accent)] text-[var(--text-inverse)] hover-hover:text-[var(--text-inverse)] hover-hover:bg-[var(--brand-accent-hover)] dark:bg-[var(--brand-accent)] dark:hover-hover:bg-[var(--brand-accent-hover)] dark:text-[var(--text-inverse)] dark:hover-hover:text-[var(--text-inverse)]',
4342
ghost: 'text-[var(--text-secondary)] hover-hover:text-[var(--text-primary)]',
44-
'ghost-hover': `text-[var(--text-secondary)] hover-hover:text-[var(--text-primary)] ${chipHoverSurfaceClass}`,
43+
'ghost-hover':
44+
'text-[var(--text-secondary)] hover-hover:text-[var(--text-primary)] hover-hover:bg-[var(--surface-hover)]',
4545
subtle:
4646
'text-[var(--text-body)] hover-hover:text-[var(--text-body)] hover-hover:bg-[var(--surface-4)]',
4747
'ghost-secondary': 'text-[var(--text-muted)] hover-hover:text-[var(--text-primary)]',

0 commit comments

Comments
 (0)