chore: input character limit error message improvement (#4271)

This commit is contained in:
Anmol Singh Bhatia 2024-04-24 15:17:50 +05:30 committed by GitHub
parent fc1cffd524
commit 87737dbfbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 84 additions and 48 deletions

View file

@ -27,9 +27,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>((props, ref) => {
: mode === "true-transparent"
? "rounded border-none bg-transparent ring-0"
: ""
} ${hasError ? "border-red-500" : ""} ${hasError && mode === "primary" ? "bg-red-500/20" : ""} ${
inputSize === "sm" ? "px-3 py-2" : inputSize === "md" ? "p-3" : ""
}`,
} ${hasError ? "border-red-500" : ""} ${inputSize === "sm" ? "px-3 py-2" : inputSize === "md" ? "p-3" : ""}`,
className
)}
{...rest}