From 82ff1eb7abf38f5ffdd6638fcda5253c3395d422 Mon Sep 17 00:00:00 2001 From: Tadokoro Yuki Date: Fri, 12 Dec 2025 20:56:57 +0900 Subject: [PATCH] fix(navigation-menu): add data-[active] styles to trigger --- deprecated/www/registry/default/ui/navigation-menu.tsx | 2 +- deprecated/www/registry/new-york/ui/navigation-menu.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deprecated/www/registry/default/ui/navigation-menu.tsx b/deprecated/www/registry/default/ui/navigation-menu.tsx index 411f5192214..0e6c68f7b0b 100644 --- a/deprecated/www/registry/default/ui/navigation-menu.tsx +++ b/deprecated/www/registry/default/ui/navigation-menu.tsx @@ -41,7 +41,7 @@ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName const NavigationMenuItem = NavigationMenuPrimitive.Item const navigationMenuTriggerStyle = cva( - "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent" + "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:text-accent-foreground data-[active]:bg-accent/50 data-[active]:hover:bg-accent data-[active]:focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent" ) const NavigationMenuTrigger = React.forwardRef< diff --git a/deprecated/www/registry/new-york/ui/navigation-menu.tsx b/deprecated/www/registry/new-york/ui/navigation-menu.tsx index 056354bf824..aa598354243 100644 --- a/deprecated/www/registry/new-york/ui/navigation-menu.tsx +++ b/deprecated/www/registry/new-york/ui/navigation-menu.tsx @@ -41,7 +41,7 @@ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName const NavigationMenuItem = NavigationMenuPrimitive.Item const navigationMenuTriggerStyle = cva( - "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent" + "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:text-accent-foreground data-[active]:bg-accent/50 data-[active]:hover:bg-accent data-[active]:focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent" ) const NavigationMenuTrigger = React.forwardRef<