File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/components/Nav/Mobile Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { forwardRef } from "react"
2
2
import { motion } from "framer-motion"
3
3
import { useTranslation } from "next-i18next"
4
4
5
+ import { cn } from "@/lib/utils/cn"
6
+
5
7
import { HAMBURGER_BUTTON_ID } from "@/lib/constants"
6
8
7
9
import {
@@ -24,21 +26,21 @@ type HamburgerProps = ButtonProps & {
24
26
}
25
27
26
28
const HamburgerButton = forwardRef < HTMLButtonElement , HamburgerProps > (
27
- ( { isMenuOpen, ...props } , ref ) => {
29
+ ( { isMenuOpen, className , ...props } , ref ) => {
28
30
const { t } = useTranslation ( "common" )
29
31
30
32
return (
31
33
< Button
32
34
ref = { ref }
33
35
id = { HAMBURGER_BUTTON_ID }
34
36
aria-label = { t ( "aria-toggle-search-button" ) }
35
- className = "px-0 py-0 text-body"
37
+ className = { cn ( "px-2 py-0 text-body" , className ) }
36
38
variant = "ghost"
37
39
{ ...props }
38
40
>
39
41
< svg
40
42
viewBox = "0 0 24 40"
41
- className = "relative mx-2 h-10 w-6 stroke-body stroke-2 hover:stroke-primary hover:text-primary [&>path]:fill-none hover:[&>path]:stroke-primary"
43
+ className = "relative h-10 w-6 stroke-body stroke-2 hover:stroke-primary hover:text-primary [&>path]:fill-none hover:[&>path]:stroke-primary"
42
44
>
43
45
< motion . path
44
46
variants = { hamburgerVariants }
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const MobileNavMenu = ({
35
35
{ /* DRAWER MENU */ }
36
36
< Sheet open = { isOpen } onOpenChange = { onToggle } >
37
37
< SheetTrigger asChild >
38
- < HamburgerButton isMenuOpen = { isOpen } { ...props } />
38
+ < HamburgerButton className = "-me-2" isMenuOpen = { isOpen } { ...props } />
39
39
</ SheetTrigger >
40
40
< SheetContent side = "left" className = "flex flex-col" aria-describedby = "" >
41
41
{ /* HEADER ELEMENTS: SITE NAME, CLOSE BUTTON */ }
You can’t perform that action at this time.
0 commit comments