File tree Expand file tree Collapse file tree
packages/emcn/src/components/button Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { type ButtonHTMLAttributes , forwardRef } from 'react'
22import { cva , type VariantProps } from 'class-variance-authority'
33import { 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)]' ,
You can’t perform that action at this time.
0 commit comments