Skip to content

Conversation

@TadokoroYuki
Copy link

@TadokoroYuki TadokoroYuki commented Dec 12, 2025

Summary

Add data-[active] styles to navigationMenuTriggerStyle so active links are visually highlighted when this style is applied to NavigationMenuLink.

Motivation

Radix NavigationMenuLink sets data-active as a boolean attribute (data-active=""), so selectors like data-[active=true] won't match. Some users apply navigationMenuTriggerStyle() to links (e.g. header navigation), which makes the active state hard to see.

Changes

  • Add data-[active]:... styles alongside existing data-[state=open]:... styles.

Testing

  • Not run (style-only change)

Fixes #6914

@vercel
Copy link
Contributor

vercel bot commented Dec 12, 2025

@TadokoroYuki is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@kgajera
Copy link

kgajera commented Dec 12, 2025

Duplicate of #8967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: active prop not working on NavigationMenuLink V4

2 participants