diff --git a/src/theme/navigation-menu.ts b/src/theme/navigation-menu.ts index 0f94c2c6..892ef9af 100644 --- a/src/theme/navigation-menu.ts +++ b/src/theme/navigation-menu.ts @@ -10,7 +10,7 @@ export default (options: Required) => ({ linkLeadingAvatar: 'shrink-0', linkLeadingAvatarSize: '2xs', linkTrailing: 'ms-auto inline-flex', - linkTrailingBadge: 'shrink-0 rounded-[calc(var(--ui-radius)]', + linkTrailingBadge: 'shrink-0 rounded-[var(--ui-radius)]', linkTrailingBadgeSize: 'sm', linkTrailingIcon: 'size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200', linkLabel: 'truncate', diff --git a/test/components/NavigationMenu.spec.ts b/test/components/NavigationMenu.spec.ts index 508f7003..9d2df5db 100644 --- a/test/components/NavigationMenu.spec.ts +++ b/test/components/NavigationMenu.spec.ts @@ -11,6 +11,7 @@ describe('NavigationMenu', () => { [{ label: 'Documentation', icon: 'i-lucide-book-open', + badge: 10, children: [{ label: 'Introduction', description: 'Fully styled and customizable components for Nuxt.', diff --git a/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap b/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap index da5077ee..b503df05 100644 --- a/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap +++ b/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap @@ -4,7 +4,9 @@ exports[`NavigationMenu > renders with arrow correctly 1`] = ` "