diff --git a/apps/ui-playground/content/design/components/button.mdx b/apps/ui-playground/content/design/components/button.mdx index b4c8cb5d3b..711b322588 100644 --- a/apps/ui-playground/content/design/components/button.mdx +++ b/apps/ui-playground/content/design/components/button.mdx @@ -65,3 +65,34 @@ Buttons can be grouped together using the ButtonGroup component. The ButtonGroup #### Combined + +## Usage + +```tsx +// Primary button (default) + + +// Secondary button + + +// Minimal button + + +// Destructive button + + +// With start icon + + +// With end icon + + +// With link + + +// Different sizes + + + + +``` diff --git a/packages/ui/components/button/Button.tsx b/packages/ui/components/button/Button.tsx index f0ea6213b6..6adaefda4a 100644 --- a/packages/ui/components/button/Button.tsx +++ b/packages/ui/components/button/Button.tsx @@ -53,6 +53,8 @@ export const buttonClasses = cva( // Base colors "bg-brand-default", "text-brand", + // Hover state + "enabled:hover:bg-brand-emphasis", // Focus state "focus-visible:outline-none", "focus-visible:ring-0", @@ -78,7 +80,6 @@ export const buttonClasses = cva( "border-default", // Hover state "enabled:hover:bg-muted", - "enabled:hover:border-emphasis", "enabled:hover:text-emphasis", // Disabled "disabled:opacity-30", @@ -125,7 +126,7 @@ export const buttonClasses = cva( "text-error", // Hover state "dark:hover:text-red-100", - "hover:border-semantic-danager-subtle", + "hover:border-semantic-error", "hover:bg-error", // Focus state "focus-visible:text-red-700",