[ui][text input] set entire input bg color

This commit is contained in:
Yangshun Tay
2022-10-29 15:24:26 +08:00
parent 6eb54203bb
commit 960bbcbb0a

View File

@ -143,7 +143,7 @@ function TextInput(
<div
className={clsx(
'flex w-full overflow-hidden rounded-md border text-sm focus-within:ring-1',
disabled && 'pointer-events-none select-none bg-slate-50',
disabled ? 'pointer-events-none select-none bg-slate-50' : 'bg-white',
containerClass,
)}>
{(() => {