Skip to content

Conversation

@Abdulmajeed-Jamaan
Copy link
Contributor

@Abdulmajeed-Jamaan Abdulmajeed-Jamaan commented Jan 17, 2026

Description

Introduces the HasExtraAttributes trait to NavigationItem and updates the sidebar group Blade view to pass extra attributes to sidebar items. This allows for more flexible customization of sidebar item components while maintaining the same look and responsiveness.

For example:

  • opening globally registered modal using ['x-on:click.prevent' => "$wire.dispatch('open-custom-modal')"]
  • add custom classes on demand for targeting with css, for example making primary color of the first navigation item that is made for call to action behavior

Visual changes

None

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

Introduces the HasExtraAttributes trait to NavigationItem and updates the sidebar group Blade view to pass extra attributes to sidebar items. This allows for more flexible customization of sidebar item components.
@github-project-automation github-project-automation bot moved this to Todo in Roadmap Jan 17, 2026
@Abdulmajeed-Jamaan Abdulmajeed-Jamaan changed the title Add support for extra attributes on sidebar items Add support for extra attributes on sidebar NavigationItem Jan 17, 2026
@Abdulmajeed-Jamaan
Copy link
Contributor Author

Another mention with similar goal as well, #10771

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

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant