I’ve placed some of my pages in folders. The inspector (for the sticky menu) allows me to apply colours for the page titles in an ACTIVE, and a DEFAULT state.
This is working as expected, but the ACTIVE state is not displaying for my page folder titles.
Hi @Dan, I really don’t like to gripe but for me, the menu component is beginning to feel like a cheese and pickle sandwich without the pickle. I personally feel that active states are essential navigation features.
Your guide shows that page folders are central to the build process so to find this omission is surprising.
Is there any chance that you could edit the menu to fix this problem? (I imagine other users would also welcome the edit.)
Totally understand, we’ll discuss this internally and see what’s possible.
On the surface this sounds like a reasonable request, but this is actually trickier than it seems as the current page needs to be aware of it’s parents…
However, @ben is away this week, so I’ll get him to take a look next week when he’s back.
I create my own menu, using Elements code from the API section
State is a folder, I was trialling with showing active pages for an area of the menu I was creating, you can seen even under a folder I was showing which page was active, started on the mobile version, then created what I wanted afterwards
Good news, we’ve just fixed this for the Navbar component, and it’ll be included in the next update.
What’s changed:
Folders now show active states. When the current page lives inside a folder, that folder (and any nested folders in between) now picks up your configured Active styling — so visitors can always see which section they’re in.
Submenu links fixed too. While we were in there, we found that links deeper inside dropdowns and mobile submenus weren’t being highlighted even when they were the current page. That’s now fixed at every level, on both desktop and mobile.
There’s nothing new to configure, this update uses the same Active state colours you already set under Nav Items in the Navbar inspector, so it just works. It’s also done in an accessibility-friendly way: only the actual current page is marked as such for screen readers, while parent folders get their own styling hook.