Skip to content

Commit ba49af1

Browse files
committed
Update MobileMenu.component.tsx
1 parent ca5380c commit ba49af1

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/components/Layout/MobileMenu.component.tsx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ const MobileMenu = ({ links }: IMobileMenuProps) => {
5656
};
5757

5858
const itemVariants = {
59-
/**
60-
* Returns an object with the CSS properties for a closed animation.
61-
*
62-
* @param {number} i - The index of the item being animated.
63-
* @return {Object} An object with CSS properties for the closed animation.
64-
*/
59+
/**
60+
* Returns an object with the CSS properties for a closed animation.
61+
*
62+
* @param {number} i - The index of the item being animated.
63+
* @return {Object} An object with CSS properties for the closed animation.
64+
*/
6565
closed: (i: number) => ({
6666
x: i % 2 === 0 ? "-100%" : "100%",
6767
opacity: 0,
@@ -72,19 +72,19 @@ const MobileMenu = ({ links }: IMobileMenuProps) => {
7272
duration: 0.15,
7373
},
7474
}),
75-
/**
76-
* Returns an object representing the animation properties for opening an item.
77-
*
78-
* @param {number} i - The index of the item.
79-
* @return {object} An object with the following properties:
80-
* - x: The x-coordinate of the item.
81-
* - opacity: The opacity of the item.
82-
* - transition: An object representing the animation properties.
83-
* - type: The type of the animation.
84-
* - stiffness: The stiffness of the animation.
85-
* - damping: The damping of the animation.
86-
* - delay: The delay of the animation.
87-
*/
75+
/**
76+
* Returns an object representing the animation properties for opening an item.
77+
*
78+
* @param {number} i - The index of the item.
79+
* @return {object} An object with the following properties:
80+
* - x: The x-coordinate of the item.
81+
* - opacity: The opacity of the item.
82+
* - transition: An object representing the animation properties.
83+
* - type: The type of the animation.
84+
* - stiffness: The stiffness of the animation.
85+
* - damping: The damping of the animation.
86+
* - delay: The delay of the animation.
87+
*/
8888
open: (i: number) => ({
8989
x: 0,
9090
opacity: 1,
@@ -111,7 +111,7 @@ const MobileMenu = ({ links }: IMobileMenuProps) => {
111111
data-testid="mobile-menu"
112112
data-cy="mobile-menu"
113113
aria-hidden={!isExpanded}
114-
className="fixed top-0 right-0 w-screen h-screen bg-gray-800 flex items-center justify-center -z-10"
114+
className="fixed top-0 right-0 w-screen h-screen bg-gray-800 flex items-center justify-center -z-10 -mt-4"
115115
initial="closed"
116116
animate="open"
117117
exit="closed"

0 commit comments

Comments
 (0)