Skip to content

Commit

Permalink
fix class
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Nov 5, 2024
1 parent 4e4e9d7 commit e9a044b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions dashboard/src/components/UI/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@ export const Button: ParentComponent<Props> = (props) => {
primary: clsx(
'border-none bg-primary-main text-text-white',
'hover:bg-color-overlay-primary-main-to-black-alpha-200',
'active:bg-color-overlay-primary-main-to-black-alpha-300 active:bg-color-overlay-primary-main-to-black-alpha-300',
'data-[active=true]:bg-color-overlay-primary-main-to-black-alpha-300 data-[active=true]:bg-color-overlay-primary-main-to-black-alpha-300',
'active:bg-color-overlay-primary-main-to-black-alpha-300',
'data-[active=true]:bg-color-overlay-primary-main-to-black-alpha-300',
),
ghost: clsx(
'border-none bg-ui-secondary text-text-black',
'hover:bg-color-overlay-ui-secondary-to-black-alpha-50',
'active:bg-color-overlay-ui-secondary-to-black-alpha-200 active:bg-color-overlay-ui-secondary-to-black-alpha-200',
'data-[active=true]:bg-color-overlay-ui-secondary-to-black-alpha-200 data-[active=true]:bg-color-overlay-ui-secondary-to-black-alpha-200',
'active:bg-color-overlay-ui-secondary-to-black-alpha-200',
'data-[active=true]:bg-color-overlay-ui-secondary-to-black-alpha-200',
),
border: clsx(
'border border-ui-border bg-inherit text-text-black',
'hover:bg-transparency-primary-hover',
'active:bg-transparency-primary-selected active:bg-transparency-primary-selected',
'data-[active=true]:bg-transparency-primary-selected data-[active=true]:bg-transparency-primary-selected',
'active:bg-transparency-primary-selected',
'data-[active=true]:bg-transparency-primary-selected',
),
text: clsx(
'bg-inherit text-text-black',
Expand All @@ -73,20 +73,20 @@ export const Button: ParentComponent<Props> = (props) => {
primaryError: clsx(
'border border-accent-error bg-accent-error text-text-white',
'hover:bg-color-overlay-accent-error-to-black-alpha-200',
'active:bg-color-overlay-accent-error-to-black-alpha-300 active:bg-color-overlay-accent-error-to-black-alpha-300',
'data-[active=true]:bg-color-overlay-accent-error-to-black-alpha-300 data-[active=true]:bg-color-overlay-accent-error-to-black-alpha-300',
'active:bg-color-overlay-accent-error-to-black-alpha-300',
'data-[active=true]:bg-color-overlay-accent-error-to-black-alpha-300',
),
borderError: clsx(
'border border-accent-error bg-inherit text-accent-error',
'hover:bg-transparency-error-hover',
'active:bg-transparency-error-selected active:bg-transparency-error-selected',
'data-[active=true]:bg-transparency-error-selected data-[active=true]:bg-transparency-error-selected',
'active:bg-transparency-error-selected',
'data-[active=true]:bg-transparency-error-selected',
),
textError: clsx(
'border-none bg-inherit text-accent-error',
'hover:bg-transparency-error-hover',
'active:bg-transparency-error-selected active:bg-transparency-error-selected',
'data-[active=true]:bg-transparency-error-selected data-[active=true]:bg-transparency-error-selected',
'active:bg-transparency-error-selected',
'data-[active=true]:bg-transparency-error-selected',
),
}[addedProps.variants],
)}
Expand Down

0 comments on commit e9a044b

Please sign in to comment.