Skip to content

Bug: NavList SubNav active state #3564

@gracepark

Description

@gracepark

Description

Hi there 👋 I'm running into an issue where if a NavList SubNav is closed and there are no aria-current children that are active, the active state is still on the SubNav level.

Screen.Recording.2023-07-27.at.9.53.49.AM.mov

Please let me know if I'm misunderstanding, but I would have expected that if all the aria-current in the children were false there would be no active marker on the parent of those children. Thank you so much!

Steps to reproduce

  1. Create a NavList with multiple parents that have children
  2. Set aria-current based on the child route being equal to the current page
  3. Open and close different parents after clicking on different children

Version

v35.26.1

Browser

Chrome

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions