diff --git a/src/theme/navigation-menu.ts b/src/theme/navigation-menu.ts index 3f7cce93..bfa7cfc4 100644 --- a/src/theme/navigation-menu.ts +++ b/src/theme/navigation-menu.ts @@ -26,9 +26,9 @@ export default (options: Required) => ({ childLinkDescription: 'text-sm text-(--ui-text-muted)', separator: 'px-2 h-px bg-(--ui-border)', viewportWrapper: 'absolute top-full left-0 flex w-full', - viewport: 'relative overflow-hidden bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) h-(--reka-navigation-menu-viewport-height) w-full transition-[width,height,left] duration-200 origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]', + viewport: 'relative overflow-hidden bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) h-(--reka-navigation-menu-viewport-height) w-full transition-[width,height,left] duration-200 origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] z-[1]', content: 'absolute top-0 left-0 w-full', - indicator: 'absolute data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-[1] w-(--reka-navigation-menu-indicator-size) translate-x-(--reka-navigation-menu-indicator-position) flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200', + indicator: 'absolute data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-[2] w-(--reka-navigation-menu-indicator-size) translate-x-(--reka-navigation-menu-indicator-position) flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200', arrow: 'relative top-[50%] size-2.5 rotate-45 border border-(--ui-border) bg-(--ui-bg) z-[1] rounded-[calc(var(--ui-radius)/2)]' }, variants: { diff --git a/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap b/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap index 25c0e04a..1294a451 100644 --- a/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap +++ b/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap @@ -33,7 +33,7 @@ exports[`NavigationMenu > renders with arrow correctly 1`] = ` - @@ -41,7 +41,7 @@ exports[`NavigationMenu > renders with arrow correctly 1`] = `
-
+
@@ -174,7 +174,7 @@ exports[`NavigationMenu > renders with content orientation vertical correctly 1`
-
+
@@ -559,7 +559,7 @@ exports[`NavigationMenu > renders with modelValue correctly 1`] = `
-
+
@@ -1225,7 +1225,7 @@ exports[`NavigationMenu > renders with unmountOnHide correctly 1`] = `
-