Customize navigation item styles

I need to emphasize a navigation item conditionally. Meaning, I'm using badges to show the number of elements inside, but I need to show in any way that there are new items when the user logs in. It's there any way to do this? Maybe I can extend the NavigationItem class to add a method similar to the one called isActiveWhen? But I don't want to publish the sidebar/item.blade to avoid problems when upgrading... Anyone has an idea about how to tackle this? a PR adding a method like ->addClassWhen could be consider?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server