fix: spacing issue in suffix and prefix (#4623)

* fix: spacing issue in suffix and prefix

* fix input leading color

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
pull/4646/head^2
Krunal Shah 2022-09-21 21:39:51 +05:30 committed by GitHub
parent 612b293a70
commit 0830523b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -212,14 +212,14 @@ const InputField = forwardRef<HTMLInputElement, InputFieldProps>(function InputF
"h-9 border border-gray-300",
addOnFilled && "bg-gray-100",
addOnLeading && "rounded-l-md border-r-0 px-3",
addOnSuffix && "border-l-0 px-3"
addOnSuffix && "rounded-r-md border-l-0 px-3"
)}>
<div
className={classNames(
"flex h-full flex-col justify-center px-1 text-sm",
props.error && "text-red-900"
)}>
<span className="whitespace-nowrap py-2.5 px-3">{addOnLeading || addOnSuffix}</span>
<span className="whitespace-nowrap py-2.5">{addOnLeading || addOnSuffix}</span>
</div>
</div>
<Input