Skip to content

Commit

Permalink
fix(NavigationMenu): wrong badge class
Browse files Browse the repository at this point in the history
Resolves #2766
  • Loading branch information
benjamincanac committed Nov 26, 2024
1 parent ba874c9 commit 86f2b48
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 41 deletions.
2 changes: 1 addition & 1 deletion src/theme/navigation-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default (options: Required<ModuleOptions>) => ({
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',
Expand Down
1 change: 1 addition & 0 deletions test/components/NavigationMenu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down
Loading

0 comments on commit 86f2b48

Please sign in to comment.