Closed shrix1 closed 3 months ago
I think the pathname changes when you in a child page. What can be done is add the active state to the child pages
This might be the intended functionality.
But, if we wanted to change it to include the subitems too, we can change Navigation.tsx
:
let isActiveGroup = group.links.findIndex((link) => link.href === pathname) !== -1
This is how the current tab is selected, we can use includes
instead of ===
or something like that.
Description 📝
There is no active state on button component in sidebar : https://syntaxui.com/components/button/neubrutalism-button
How to Fix:
Active state should look something like this:
Link 🔗
https://syntaxui.com/components/button/neubrutalism-button