Skip to content

[6.x] Non-collapsible nav-item group option - #19350

Open
brianjhanson wants to merge 1 commit into
6.xfrom
feature/cleanup-nav-styling
Open

[6.x] Non-collapsible nav-item group option#19350
brianjhanson wants to merge 1 commit into
6.xfrom
feature/cleanup-nav-styling

Conversation

@brianjhanson

Copy link
Copy Markdown
Contributor

Description

Adds a group option to craft-nav-item for rendering a subnav as a non-collapsible semantic grouping — no disclosure toggle, and the subnav stays permanently open. Reflected as a [group] attribute for styling (:host([group])).

Also:

  • Nav items with no href now render as a plain <span> instead of an <a>, and drop aria-current (kept only on real links).
  • NavItem gains a group property (with fluent setter); EditUserTrait marks the "Account Security" group as non-collapsible, and SecondaryNav.vue forwards the flag.
  • ElementSources.vue nav grouping cleanup.
  • Storybook: Group story on Nav Item, plus ContentSources/SecondaryNav/IconOnly stories on Nav List reflecting real CP usage.

@brianjhanson
brianjhanson marked this pull request as ready for review July 30, 2026 11:58
@github-actions

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/uiopen Storybook

Changed components:

resources/jsopen Storybook

No changed components detected in this Storybook.

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.

1 participant