[ui] make disabled color more consistent

This commit is contained in:
Yangshun Tay
2022-10-28 19:28:34 +08:00
parent 720759628d
commit 766bee0e0c
9 changed files with 119 additions and 17 deletions

View File

@@ -88,10 +88,9 @@ function Select<T>(
aria-label={isLabelHidden ? label : undefined}
className={clsx(
display === 'block' && 'block w-full',
'rounded-md py-2 pl-3 pr-8 text-sm focus:outline-none',
'rounded-md py-2 pl-3 pr-8 text-sm focus:outline-none disabled:bg-slate-50 disabled:text-slate-500',
stateClasses[state],
borderClasses[borderStyle],
disabled && 'bg-slate-100',
)}
defaultValue={defaultValue != null ? String(defaultValue) : undefined}
disabled={disabled}