Skip to content

[SideNavMenu]: regression SideNavMenu no longer collapses in isRail mode when SideNav is not expanded #9725

@kevinsperrine

Description

@kevinsperrine

Package

carbon-components, carbon-components-react

Browser

Chrome

Package version

v10.44.0, v7.44.0

Description

The expected behavior is for the SideNavMenu item to collapse when the SideNav collapses, and it was fixed at one point: https://deploy-preview-3626--carbon-components-react.netlify.app/?path=/story/ui-shell--sidenav-rail, but there has been a regression and it no longer closes. Also visible in the current storybook: https://react.carbondesignsystem.com/?path=/story/components-ui-shell--side-nav-rail

CodeSandbox example

https://codesandbox.io/s/peaceful-pare-fbo9u?file=/src/index.js

Steps to reproduce

Click the a SideNavMenu item to expand it, move mouse after from SideNav to cause it to collapse into rail mode. Extra space is still visible where submenu items are.

Code of Conduct

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions