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>
This commit is contained in:
co-authored by
Peer Richelsen
parent
612b293a70
commit
0830523b84
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user