Skip to content

Commit

Permalink
fix: fix the border of the search input
Browse files Browse the repository at this point in the history
Fixes the border color so that the input element on search form is visible.
  • Loading branch information
martinkyselak committed Dec 30, 2023
1 parent 481d436 commit 9e93069
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/SearchWalletForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ export function SearchWalletForm({ onSearch }: Props) {
} = useForm<SearchCriteria>();

const fieldStyle = 'flex flex-col mb-2';

function getEditorStyle(fieldError: FieldError | undefined) {
return fieldError ? 'border-red-500' : 'border-slate-300';
return fieldError ? 'border border-red-500' : 'border border-slate-700';
}
return (
<form noValidate className="border-b py-4" onSubmit={handleSubmit(onSearch)}>
<form noValidate className="border-b py-2" onSubmit={handleSubmit(onSearch)}>
<div className={fieldStyle}>
<label htmlFor="address">Wallet Address</label>
<input
Expand All @@ -32,7 +33,7 @@ export function SearchWalletForm({ onSearch }: Props) {
<button
type="submit"
disabled={isSubmitting}
className="mt-2 h-10 px-6 font-semibold bg-slate-700 text-white self-start"
className="mt-2 h-10 px-4 font-semibold bg-slate-700 text-white self-start"
>
Search
</button>
Expand Down

0 comments on commit 9e93069

Please sign in to comment.