fix(search): use lucide-react icons in SearchBar instead of unicode glyphs - #656
Merged
nonsobethel0-dev merged 2 commits intoSep 24, 2026
Conversation
Replace the unicode magnifying-glass emoji with lucide-react's Search icon, matching the icon set used by NavBar, Breadcrumb and Toast. The icon is aria-hidden since the input's placeholder already labels it.
Swap the unicode ✕ clear glyph for lucide-react's X (same as Toast), keeping the aria-label. Add tests asserting the Search and X icons render as lucide SVGs and the emoji/glyph are gone.
|
@laurastephaniee Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
❌ Deploy Preview for boisterous-sunshine-dd4c4c failed.
|
nonsobethel0-dev
merged commit Sep 24, 2026
07479d8
into
Parashield-Protocol:main
0 of 4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
SearchBardrew its search icon with a unicode 🔍 emoji inside a<span>. Everywhere else, the app useslucide-reacticons (NavBar:Menu/X,Breadcrumb:ChevronRight,Toast:X). The emoji:text-gray-400colour;The clear button had the same problem with a unicode
✕.Changes
Commit 1: search icon (
src/components/SearchBar.tsx)Searchfromlucide-reactand replaces the emoji<span>.size={16}, with the same positioning classes as before (absolute left-3 top-1/2 -translate-y-1/2,pointer-events-none), so it sits in the same place inside the existingpl-9input padding.aria-hidden="true": it's decorative, and the input's placeholder describes the field.Commit 2: clear icon + tests
✕is replaced with lucideX(size={14}, same asToast), andaria-label="Clear search"is kept. The now-unusedtext-xsclass is removed from the button.src/__tests__/SearchBar.test.tsx:SearchSVG (lucide-search), markedaria-hidden, and no 🔍;XSVG and no✕glyph.No new dependency:
lucide-reactis already inpackage.json.Verification
npx vitest run src/__tests__/SearchBar.test.tsx: 9/9 pass.tsc --noEmitreports no errors in the touched files.Closes [bug] SearchBar uses unicode magnifying glass emoji instead of icon component #651
Closes [bug] buildFlightKey does not sanitize flight number input #616
Closes [ux] Toast notification does not show timestamp #617
Closes [security] Logo component priority prop defaults to true for all instances #618