regression: red and green color backgrounds (#8456)

This commit is contained in:
Aaryan Khandelwal 2025-12-26 19:17:03 +05:30 committed by GitHub
parent 2980c2d76b
commit 6cc5c1946a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 86 additions and 177 deletions

View file

@ -54,11 +54,11 @@ export const getFragmentColor = (fragmentIndex: number, activeFragments: number)
switch (activeFragments) {
case 1:
return "bg-red-500";
return "bg-danger-primary";
case 2:
return "bg-orange-500";
case 3:
return "bg-green-500";
return "bg-success-primary";
default:
return "bg-layer-1";
}

View file

@ -47,7 +47,7 @@ const TextArea = React.forwardRef(function TextArea(
"px-3 py-2": textAreaSize === "sm",
"p-3": textAreaSize === "md",
"border-danger-strong": hasError,
"bg-red-100": hasError && mode === "primary",
"bg-danger-subtle": hasError && mode === "primary",
},
className
)}