From 6565303cb510914d207cee1999b4b7a62a271db5 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Sun, 25 Oct 2020 12:23:07 -0300 Subject: [PATCH] a11y pass --- components/core/Navbar/Navbar.tsx | 2 +- components/core/Searchbar/Searchbar.tsx | 7 ++++--- components/ui/Hero/Hero.tsx | 12 +++++++----- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/components/core/Navbar/Navbar.tsx b/components/core/Navbar/Navbar.tsx index eb380cb8c..1c75d38b0 100644 --- a/components/core/Navbar/Navbar.tsx +++ b/components/core/Navbar/Navbar.tsx @@ -42,7 +42,7 @@ const Navbar: FC = ({ className }) => {
- +
) diff --git a/components/core/Searchbar/Searchbar.tsx b/components/core/Searchbar/Searchbar.tsx index b807e10db..e405a34aa 100644 --- a/components/core/Searchbar/Searchbar.tsx +++ b/components/core/Searchbar/Searchbar.tsx @@ -5,9 +5,10 @@ import { useRouter } from 'next/router' interface Props { className?: string + id?: string } -const Searchbar: FC = ({ className }) => { +const Searchbar: FC = ({ className, id = 'search' }) => { const router = useRouter() useEffect(() => { @@ -16,14 +17,14 @@ const Searchbar: FC = ({ className }) => { return (