improve contrast of inputs

This commit is contained in:
Victor Oliva
2024-11-08 23:33:45 +07:00
parent 0bdb3d2bb0
commit af376fca84
10 changed files with 113 additions and 112 deletions
+2 -2
View File
@@ -71,13 +71,13 @@ export const BinaryInput: React.FC<{
{(input) => (
<div
className={twMerge(
"px-4 py-2 border border-slate-500 leading-tight text-white focus-within:outline focus-within:outline-1 flex items-center gap-2",
"px-4 py-2 border border-border rounded leading-tight focus-within:outline focus-within:outline-1 flex items-center gap-2 bg-input",
warn ? "border-orange-400" : null,
uploadError ? "border-red-600" : null,
)}
>
{input}
<label title="Load from file" className="text-slate-200">
<label title="Load from file" className="text-foreground/80">
<FileUp size={16} />
<BinaryFileInput
validate={validateFile}
+1 -1
View File
@@ -29,7 +29,7 @@ export const SearchableSelect = <T,>({
variant="outline"
role="combobox"
aria-expanded={open}
className="flex w-52 justify-between overflow-hidden"
className="flex w-52 justify-between overflow-hidden bg-input border border-border"
>
{value ? (
<span className="text-ellipsis overflow-hidden">
+1 -1
View File
@@ -27,7 +27,7 @@ export const TextInputField: FC<{
{children(
<input
className={twMerge(
"px-4 py-2 border border-slate-500 leading-tight text-white",
"px-4 py-2 border border-border leading-tight text-foreground",
warn ? "border-orange-400" : null,
error ? "border-red-600" : null,
className,