Skip to content

[Bug]: nav__submenu attribute aria-expanded is intruppted when using SideNav with overlay #19433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
adamlsmith981 opened this issue May 20, 2025 · 0 comments
Open
2 tasks done

Comments

@adamlsmith981
Copy link

Package

@carbon/react

Browser

Chrome

Package version

1.82.1

React version

No response

Description

For an issue I am working on in a react project that uses the SideNav component similar to: https://react.carbondesignsystem.com/?path=/story/components-ui-shell-sidenav--side-nav-rail-w-header, where there are submenu's, we are having an issue being able to identify whether that submenu is expanded or not when the overlay of the SideNav is collapsed. Despite the attribute aria-expanded getting correctly updated to true when you click on the submenu drop down to see the subitems, if you are using a SideNav overlay, the aria-expanded will get reset to false, despite the user not collapsing the submenu.

Image Image Image Image

Reproduction/example

https://react.carbondesignsystem.com/?path=/story/components-ui-shell-sidenav--side-nav-rail-w-header

Steps to reproduce

  • From the story provided, keep an eye on the aria-expanded attribute for the button which opens up the SideNav sub menu.
  • Hover over the menu to expand the SideNav
  • Click on one of the submenu's, expanding a list of subitems. Notice that aria-expanded in the button updates to true.
  • Once finished hovering over the SideNav, notice that when the overlay collapses, the aria-expanded attribute gets set to false despite not collapsing the menu.

Suggested Severity

Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.

Application/PAL

Event Endpoint Management

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant