Fix: Danger color not working on disabled buttons

This commit is contained in:
Daniel Hougaard
2024-05-07 17:30:27 +02:00
parent 696479a2ef
commit b298eec9db
+1 -1
View File
@@ -29,7 +29,7 @@ const buttonVariants = cva(
colorSchema: { colorSchema: {
primary: ["bg-primary", "text-black", "border-primary bg-opacity-90 hover:bg-opacity-100"], primary: ["bg-primary", "text-black", "border-primary bg-opacity-90 hover:bg-opacity-100"],
secondary: ["bg-mineshaft", "text-gray-300", "border-mineshaft hover:bg-opacity-80"], secondary: ["bg-mineshaft", "text-gray-300", "border-mineshaft hover:bg-opacity-80"],
danger: ["bg-red", "text-white", "border-red hover:bg-opacity-90"], danger: ["!bg-red", "!text-white", "!border-red hover:!bg-opacity-90"],
gray: ["bg-bunker-500", "text-bunker-200"] gray: ["bg-bunker-500", "text-bunker-200"]
}, },
variant: { variant: {