Skip to content

Mobile Menu Behavior at Incorrect Breakpoint #8298

@CNanninga

Description

@CNanninga

The mobile menu JS behavior does not trigger at the same breakpoint as the mobile menu styles.

Preconditions

Magento 2.1.3

Steps to reproduce

Having active top-level categories and second-level categories in the main nav is sufficient.

Expected result

When at the breakpoint where the mobile styling for the main menu is applied (767px) - i.e., the "hamburger" menu with the slide-out - the mobile interaction behavior on the menu should also be applied. Specifically, in two respects:

  1. Expanding a top-level category should be on a click/tab interaction, not hover.
  2. An "All {Category Name}" item should be inserted as the first item under each top-level category.

Actual result

The behavior mentioned is not exhibited between 640px and 767px. Top-level categories still expand on a hover interaction, and no "All {Category Name}" item is present. This behavior only happens under 640px.

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