Skip to content

Commit 76f8880

Browse files
authored
Merge pull request #798 from gmarav05/svg-search-icon
Improve search icon visibility in dark mode
2 parents 598666e + 6d6440d commit 76f8880

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/pages/blogs/blogs-new.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,12 +684,13 @@
684684
transform: none;
685685
width: 24px;
686686
height: 24px;
687-
color: #6366f1;
687+
color: #757575;
688688
flex-shrink: 0;
689689
display: flex;
690690
align-items: center;
691691
justify-content: center;
692692
pointer-events: none;
693+
stroke: #757575;
693694
}
694695

695696
@keyframes iconPulse {
@@ -703,8 +704,13 @@
703704
}
704705
}
705706

707+
[data-theme='dark'] .search-icon {
708+
color:#757575;
709+
stroke: white;
710+
}
711+
706712
.search-wrapper:focus-within .search-icon {
707-
color: #4f46e5;
713+
color:#757575;
708714
animation-play-state: paused;
709715
transform: translateY(-50%) scale(1.1);
710716
}

src/pages/blogs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default function Blogs(): React.JSX.Element {
103103
</svg>
104104
<input
105105
type="text"
106-
placeholder="Search articles by title, description, or topic..."
106+
placeholder="Search article by title, topic"
107107
className="search-input"
108108
value={searchTerm}
109109
onChange={handleSearchChange}

0 commit comments

Comments
 (0)