From 0f764242fea14565798085447d8524b4bf05f76a Mon Sep 17 00:00:00 2001 From: satnaing Date: Tue, 18 Apr 2023 23:19:38 +0630 Subject: [PATCH] fix: update menu element with svg and refactor toggle logic Replace div element in menu button with svg. Refactor toggle-menu JS logic to be more concise. --- src/components/Header.astro | 84 ++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 47 deletions(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index 984a218..ac88e65 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -38,11 +38,24 @@ const { activeNav } = Astro.props; aria-expanded="false" aria-controls="menu-items" > -
-
-
-
-
+ + + + + + +