Skip to content

Commit 792b943

Browse files
authored
Make search bar text white (#59)
1 parent 5208b98 commit 792b943

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

frontend/src/components/SearchBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export default function SearchBar() {
192192
onChange={(e) => setQuery(e.target.value)}
193193
onKeyDown={onKeyDown}
194194
placeholder="Search Address / Tx Hash / Block / Token / NFT"
195-
className="w-full bg-dark-700/80 backdrop-blur border border-dark-500 px-4 py-2 pl-10 text-sm text-fg placeholder-gray-500 rounded-full shadow-md shadow-black/20 focus:outline-none focus:border-accent-primary focus:ring-2 focus:ring-accent-primary/40 transition"
195+
className="search-input w-full bg-dark-700/80 backdrop-blur border border-dark-500 px-4 py-2 pl-10 text-sm rounded-full shadow-md shadow-black/20 focus:outline-none focus:border-accent-primary focus:ring-2 focus:ring-accent-primary/40 transition"
196196
/>
197197
<svg
198198
className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"

frontend/src/index.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@
8686
@apply hover:border-dark-500 hover:shadow-lg hover:shadow-black/30;
8787
}
8888

89+
.search-input {
90+
color: #fff;
91+
caret-color: #fff;
92+
}
93+
94+
.search-input::placeholder {
95+
color: rgb(255 255 255 / 0.72);
96+
}
97+
8998
.btn {
9099
@apply px-3 py-1.5 font-medium rounded-lg transition-all duration-150;
91100
@apply focus-visible:outline-none focus-visible:ring-2;

0 commit comments

Comments
 (0)