Skip to content

Commit a644466

Browse files
committed
fix extra padding in opened submenus
1 parent 1ee1ae5 commit a644466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Nav/Menu/MenuContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { useNavMenu } from "./useNavMenu"
1212
export const navMenuVariants = tv({
1313
slots: {
1414
base: "text-body",
15-
item: "has-[button[data-state=open]]:rounded-s-md has-[button[data-state=open]]:rounded-e-none has-[button[data-state=open]]:-me-4 has-[button[data-state=open]]:pe-4",
16-
link: "w-full relative -me-4 py-4 hover:text-menu-active [&:hover_p]:text-menu-active focus-visible:text-menu-active [&:focus-visible_p]:text-menu-active hover:outline-0 rounded-md hover:shadow-none focus-visible:outline-0 focus-visible:rounded-md focus-visible:shadow-none",
15+
item: "has-[button[data-state=open]]:rounded-s-md has-[button[data-state=open]]:rounded-e-none has-[button[data-state=open]]:-me-2 has-[button[data-state=open]]:pe-2",
16+
link: "w-full relative py-4 hover:text-menu-active [&:hover_p]:text-menu-active focus-visible:text-menu-active [&:focus-visible_p]:text-menu-active hover:outline-0 rounded-md hover:shadow-none focus-visible:outline-0 focus-visible:rounded-md focus-visible:shadow-none",
1717
submenu: "grid h-full w-full grid-cols-1",
1818
},
1919
variants: {

0 commit comments

Comments
 (0)