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

Tree nav: tabs do not always get highlighted in nav

Open matthewgallo opened this issue 1 year ago • 2 comments

Detailed description

Describe in detail the issue you’re having.

Pages in tree nav can lose highlighting in the left nav. With this page for example, the overview page receives the expected highlighting, however, the other pages lose highlight and the nav collapses. This causes the user to lose context as to where they are.

https://ibm-products-website.carbondesignsystem.com/patterns/canvases/nodes/card-nodes/ https://ibm-products-website.carbondesignsystem.com/patterns/canvases/nodes/shape-nodes/ https://ibm-products-website.carbondesignsystem.com/patterns/canvases/nodes/bullet-nodes/

What did you expect to happen? What happened instead? What would you like to see changed?

Expected the navigation to not collapse and to also not collapse.

What browser are you working in?

Chrome

Steps to reproduce the issue

  1. Can reproduce with example pages above

matthewgallo avatar Aug 27 '24 18:08 matthewgallo

From when I was looking at the original PR, thinking this might be due to the way we’re setting location/path name.

elycheea avatar Aug 27 '24 18:08 elycheea

Also noticed that the About/Overview collapses when you first go to the Overview tab. https://ibm-products-website.carbondesignsystem.com/about/overview/

elycheea avatar Aug 28 '24 16:08 elycheea