From 84644d0e66d668a9250af0375bb9ace2f1706249 Mon Sep 17 00:00:00 2001 From: Nikomus Date: Fri, 13 Jan 2023 12:48:50 +0000 Subject: [PATCH 1/2] Conditionally render menu container and add accessible name --- src/components/Header.js | 74 ++++++++++++++++++++++------------------ 1 file changed, 41 insertions(+), 33 deletions(-) diff --git a/src/components/Header.js b/src/components/Header.js index 9f95c7ea..40ac8b83 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -47,7 +47,7 @@ const DesktopNav = () => { @@ -121,33 +121,41 @@ const Header = () => { {windowSize > 500 && } {windowSize <= 500 && ( -
- - -
+ {isOpen && ( + + )} + )} @@ -226,14 +234,14 @@ const Header = () => { } .hamburger { + align-self: flex-end; background: none; - color: white; border: none; + color: white; + display: flex; font-size: 3rem; margin: 0; - padding-right: 1rem; - display: flex; - align-self: flex-end; + z-index: 5; } `} From 49032824dd1ee4ecf1e3c2e0aa53aa555cab1516 Mon Sep 17 00:00:00 2001 From: Nikomus Date: Fri, 13 Jan 2023 13:16:04 +0000 Subject: [PATCH 2/2] Match z-index and menu rendering condition --- src/components/Header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Header.js b/src/components/Header.js index 40ac8b83..28c32f43 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -137,7 +137,7 @@ const Header = () => {