gatsby-theme-carbon icon indicating copy to clipboard operation
gatsby-theme-carbon copied to clipboard

Multiple items highlighted in navigation menu

Open kmlefebv opened this issue 4 years ago • 3 comments
trafficstars

Detailed description

  • Describe in detail the issue you’re having. Upon clicking a couple of the navigation menu items, multiple sections are highlighted instead of only the one I click on.

  • What did you expect to happen? What happened instead? What would you like to see changed? I'd like to have only the item I select be highlighted.

  • What browser are you working in? Firefox

Steps to reproduce the issue

Click on item on side navigation menu

Additional information

  • Here is an example where I clicked on Meetings and Meet the Team is highlighted as well. image

  • Another playbook that I'm a user of had the same issue. The person who maintains the playbook couldn't remember what the fix was, but she recommended only having one mdx per folder that is available on the side menu. I've done this, but I still run into the problem here where all the items are in different sub-folders of the same folder. image

kmlefebv avatar Apr 14 '21 23:04 kmlefebv

What version of the theme are you using?

vpicone avatar Apr 16 '21 20:04 vpicone

1.27.0 I also haven't changed any of the dependencies after the installation.

kmlefebv avatar Apr 16 '21 20:04 kmlefebv

I could be wrong here, but I think I encountered this issue in the past when the .mdx pages in question were more than 2 levels deep in the Pages > subdirectory and they had the same level 2 parent directory.

(So, as a workaround to this bug, I ended up restructuring the files so that they weren't nested as deeply and the problem went away. But it would clearly be good if there wasn't this restriction.)

tomwaterton avatar Apr 29 '22 08:04 tomwaterton