Skip to content

Expected behaviour for CvSideNav when hovering on the side nav with a side railΒ #1804

@samueljz

Description

@samueljz

Summary

Expected behaviour for CvSideNav when hovering on the side nav with a side rail.

Relevant information

I was looking up the recent changes for CvSideNav where inert was introduced. (Code as follows)

:inert="!panelExpanded && !fixed"

Reference: https://github.com/carbon-design-system/carbon-components-vue/blob/main/src/components/CvUIShell/CvSideNav.vue

With this, the side nav will not open when hovering on it when it has a side rail.

I cross reference against the react implementation and it's implemented as such.

inert={!isRail ? !(expanded || isLg) : undefined}

Reference: https://github.com/carbon-design-system/carbon/blob/main/packages/react/src/components/UIShell/SideNav.tsx

What is the expected behaviour actually? And is this actually a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions