From 2e427647adfbf4d03df2abca31493e05e0810dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Legrelle?= Date: Thu, 27 Oct 2022 13:01:27 +0200 Subject: [PATCH] :fix: search loader icon --- .../design-system/field/SearchField.tsx | 12 +--- site/source/design-system/icons/Loader.tsx | 67 ++++++++----------- .../source/design-system/icons/SearchIcon.tsx | 12 +--- 3 files changed, 30 insertions(+), 61 deletions(-) diff --git a/site/source/design-system/field/SearchField.tsx b/site/source/design-system/field/SearchField.tsx index 46b6d7f08..3459d9120 100644 --- a/site/source/design-system/field/SearchField.tsx +++ b/site/source/design-system/field/SearchField.tsx @@ -33,17 +33,7 @@ const SearchInputContainer = styled(StyledInputContainer)` ` const IconContainer = styled.div<{ hasLabel?: boolean }>` - padding: calc( - ${({ hasLabel = false }) => (hasLabel ? '1rem' : '0rem')} + 0.5rem - ) - 0 0.5rem; - ${({ theme: { darkMode } }) => - darkMode && - css` - & * { - fill: white !important; - } - `} + padding: calc(${({ hasLabel = false }) => (hasLabel ? '1rem' : '0rem')} + 0.5rem) 0 0.5rem; ` export default function SearchField( diff --git a/site/source/design-system/icons/Loader.tsx b/site/source/design-system/icons/Loader.tsx index 787094bf4..bf1d5c5d9 100644 --- a/site/source/design-system/icons/Loader.tsx +++ b/site/source/design-system/icons/Loader.tsx @@ -4,51 +4,40 @@ export function Loader() { aria-label="Chargement en cours" width={24} height={24} + viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" role="img" > - - - - + + + + - - - - - - - + + + + + + + + + ) diff --git a/site/source/design-system/icons/SearchIcon.tsx b/site/source/design-system/icons/SearchIcon.tsx index 6bde404be..0b092374f 100644 --- a/site/source/design-system/icons/SearchIcon.tsx +++ b/site/source/design-system/icons/SearchIcon.tsx @@ -1,25 +1,15 @@ export function SearchIcon({ ...props }) { return ( - + )