Skip to content

Commit

Permalink
feat(button): add transparent color prop
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILLIPS71 committed May 4, 2024
1 parent 8fbfbc8 commit 012e732
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Component: Meta<typeof Button> = {
argTypes: {
color: {
control: { type: 'select' },
options: ['brand', 'success', 'info', 'warning', 'danger'],
options: ['transparent', 'brand', 'success', 'info', 'warning', 'danger'],
},
},
}
Expand Down
3 changes: 3 additions & 0 deletions packages/theme/src/components/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export const button = tv({
},
variants: {
color: {
transparent: {
button: ['text-white', 'border-transparent', 'focus:outline-shark'],
},
neutral: {
button: ['text-white', 'bg-shark/80 hover:bg-shark', 'border-shark', 'focus:outline-shark'],
},
Expand Down

0 comments on commit 012e732

Please sign in to comment.