The mobile-menu Sass partial includes both the mobile-nav and nav--mobile components. Also, the mobile-nav component doesn’t match the name of the Sass partial.

Comments

dcmouyard’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new40.88 KB

This patch renames the mobile-nav component to mobile-menu in mobile-menu.js and moves the nav--mobile styles into its own Sass partial.

dcmouyard’s picture

StatusFileSize
new40.1 KB

Re-rolled patch so that it applies cleanly to 7.x-1.x.

adamjuran’s picture

Patch applies cleanly. Any particular reason the class/partial for mobile menu "nav--mobile" and the one for main menu "nav--main-menu"? What are your thoughts on naming consistency, Dan?

dcmouyard’s picture

The naming convention is just nav--variant-name. For most menus, the variant name will be the machine name of the menu (e.g., main-menu, primary-local-tasks, menu-custom, etc.) We have full control of the variant name for the mobile menu in mobile-menu.js, though, so it could be anything. Would you prefer nav--mobile-menu instead of nav--mobile?

adamjuran’s picture

I think I would prefer nav--mobile-menu, yes.

dcmouyard’s picture

StatusFileSize
new38.64 KB
new1.17 KB
adamjuran’s picture

Status: Needs review » Reviewed & tested by the community

Looks good. RTBC.

  • dcmouyard committed dc11a2c on 7.x-1.x
    Issue #2453173 by dcmouyard, scaragucc': Refactored mobile menu styles...
dcmouyard’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.