diff --git a/app/[lang]/tournois/SearchBar.tsx b/app/[lang]/tournois/SearchBar.tsx index 418e96f..2170e64 100644 --- a/app/[lang]/tournois/SearchBar.tsx +++ b/app/[lang]/tournois/SearchBar.tsx @@ -1,5 +1,6 @@ import { useTranslations } from "next-intl"; import { useAtom } from "jotai/index"; +import { IoCloseOutline } from "react-icons/io5"; import { searchStringAtom } from "@/app/atoms"; const SearchBar = () => { @@ -26,10 +27,19 @@ const SearchBar = () => { > + + {searchString !== "" && ( +
+ +
+ )} + setSearchString(e.target.value)} diff --git a/app/globals.css b/app/globals.css index ce7a2fc..1c10387 100644 --- a/app/globals.css +++ b/app/globals.css @@ -25,3 +25,20 @@ body { ) rgb(var(--background-start-rgb)); } + +input[type="search"]::-ms-clear { + display: none; + width: 0; + height: 0; +} +input[type="search"]::-ms-reveal { + display: none; + width: 0; + height: 0; +} +input[type="search"]::-webkit-search-decoration, +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-results-button, +input[type="search"]::-webkit-search-results-decoration { + display: none; +}