Skip to content

Commit

Permalink
Merge pull request #26 from thomasKn/thomas/fv-234-mobile-menu-subnav
Browse files Browse the repository at this point in the history
Update mobile menu sub nav trigger animation
  • Loading branch information
thomasKn authored Feb 2, 2024
2 parents 51526f7 + 4c51e3c commit 5040603
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions app/components/ui/MobileNavigationMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,20 @@ const MobileNavigationMenuTrigger = forwardRef<
mobileNavigationMenuTriggerStyle(),
)}
>
<span className="group-data-[state=open]:order-last">{children}</span>
<IconChevron
className="group-data-[state=open]:size-7 group-data-[state=open]:rotate-180"
direction="right"
/>
<span
className={cn(
'text-left group-data-[state=open]:overflow-hidden group-data-[state=open]:text-ellipsis',
'group-data-[state=open]:order-last group-data-[state=open]:text-nowrap',
)}
>
{children}
</span>
<span>
<IconChevron
className="group-data-[state=open]:size-7 group-data-[state=open]:rotate-180"
direction="right"
/>
</span>
</span>
</NavigationMenuPrimitive.Trigger>
));
Expand Down

0 comments on commit 5040603

Please sign in to comment.