Skip to content

Commit

Permalink
color changed of search input text
Browse files Browse the repository at this point in the history
  • Loading branch information
PATILYASHH committed Aug 3, 2024
1 parent 0a34432 commit 33574d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
23 changes: 12 additions & 11 deletions src/components/Search/SearchInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,18 @@ function SearchInput({ search, setSearch, setType }) {
className="flex items-center border border-primary gap-4 py-2 px-6 rounded-lg w-11/12 md:w-4/6"
>
<MdSearch className="text-gray text-2xl" />
<input
type="text"
id="searchbox"
value={search}
className="w-full text-sm md:text-base focus:outline-none placholder:font-semibold text-dark bg-transparent"
placeholder="Search for errors"
onChange={(e) => {
setSearch(e.target.value);
setType("");
}}
/>
<input
type="text"
id="searchbox"
value={search}
className="w-full text-sm md:text-base focus:outline-none placeholder:font-semibold bg-transparent custom-input"
placeholder="Search for errors"
onChange={(e) => {
setSearch(e.target.value);
setType("");
}}
/>

<button
className={`focus:outline-none ${!search ? "hidden" : "block"}`}
onClick={() => setSearch("")}
Expand Down
1 change: 0 additions & 1 deletion src/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 33574d2

Please sign in to comment.