style: update to destructive button variant and fix pointer cursor case

This commit is contained in:
pommee
2025-09-28 21:04:30 +02:00
parent 30ebcc9ed5
commit 4025b8bfe9

View File

@@ -12,7 +12,7 @@ const buttonVariants = cva(
default:
"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
destructive:
"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
"bg-destructive/50 text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
outline:
"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
secondary:
@@ -46,7 +46,9 @@ function Button({
}) {
const Comp = asChild ? Slot : "button";
const cursorPointer =
props.disabled === undefined || false ? "cursor-pointer" : "";
props.disabled === undefined || props.disabled === false
? "cursor-pointer"
: "";
return (
<Comp