From 117e2a22afea50de1c4d456573681aa49bcd4b59 Mon Sep 17 00:00:00 2001 From: jyotishpro Date: Sat, 16 Nov 2024 12:14:25 +0530 Subject: [PATCH 1/3] fix visibily issue #3371 with algolia search icon in navbar --- components/navigation/NavBar.tsx | 37 +++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/components/navigation/NavBar.tsx b/components/navigation/NavBar.tsx index d0fd2ca6fa02..6eebcfd33114 100644 --- a/components/navigation/NavBar.tsx +++ b/components/navigation/NavBar.tsx @@ -40,6 +40,7 @@ export default function NavBar({ className = '', hideLogo = false }: NavBarProps const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const { i18n } = useTranslation(); + /** * Retrieves unique language options based on the current path and i18nPaths configuration. * @@ -145,6 +146,23 @@ export default function NavBar({ className = '', hideLogo = false }: NavBarProps setOpen(null); }, [asPath]); + const loupeSvg = encodeURIComponent(` + + `); + return (
@@ -160,7 +178,7 @@ export default function NavBar({ className = '', hideLogo = false }: NavBarProps
@@ -219,11 +237,21 @@ export default function NavBar({ className = '', hideLogo = false }: NavBarProps ))}
+ - + + + + {/* // Language Picker Component */} @@ -235,7 +263,6 @@ export default function NavBar({ className = '', hideLogo = false }: NavBarProps className='' selected={i18n.language ? i18n.language.toUpperCase() : 'EN'} /> - Date: Sat, 16 Nov 2024 20:12:49 +0530 Subject: [PATCH 2/3] Fixes algolia search button --- components/navigation/NavBar.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/components/navigation/NavBar.tsx b/components/navigation/NavBar.tsx index 6eebcfd33114..4b74e728f754 100644 --- a/components/navigation/NavBar.tsx +++ b/components/navigation/NavBar.tsx @@ -152,7 +152,7 @@ export default function NavBar({ className = '', hideLogo = false }: NavBarProps width="24" height="24" fill="none" - stroke="currentColor" + stroke="#9CA3AF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" @@ -239,7 +239,7 @@ export default function NavBar({ className = '', hideLogo = false }: NavBarProps
- - - - + > {/* // Language Picker Component */} From 2cadadfa06694b3fb08aeda003d324cf8e6abc43 Mon Sep 17 00:00:00 2001 From: jyotishpro Date: Sat, 16 Nov 2024 20:30:25 +0530 Subject: [PATCH 3/3] fixes #3371 algolia search button for mobile --- components/navigation/MobileNavMenu.tsx | 27 +++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/components/navigation/MobileNavMenu.tsx b/components/navigation/MobileNavMenu.tsx index 8b0ccd740374..61c8b7b3cc6f 100644 --- a/components/navigation/MobileNavMenu.tsx +++ b/components/navigation/MobileNavMenu.tsx @@ -41,6 +41,23 @@ export default function MobileNavMenu({ onClickClose = () => {} }: MobileNavMenu setOpen(menu); } + const loupeSvg = encodeURIComponent(` + + `); + return (
@@ -52,10 +69,16 @@ export default function MobileNavMenu({ onClickClose = () => {} }: MobileNavMenu
- +