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.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff.txt | 1.17 KB | dcmouyard |
| #6 | gesso-mobile-menu-2453173-6.patch | 38.64 KB | dcmouyard |
| #2 | gesso-mobile-menu-2453173-2.patch | 40.1 KB | dcmouyard |
Comments
Comment #1
dcmouyard commentedThis patch renames the mobile-nav component to mobile-menu in mobile-menu.js and moves the nav--mobile styles into its own Sass partial.
Comment #2
dcmouyard commentedRe-rolled patch so that it applies cleanly to 7.x-1.x.
Comment #3
adamjuran commentedPatch 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?
Comment #4
dcmouyard commentedThe 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 prefernav--mobile-menuinstead ofnav--mobile?Comment #5
adamjuran commentedI think I would prefer
nav--mobile-menu, yes.Comment #6
dcmouyard commentedComment #7
adamjuran commentedLooks good. RTBC.
Comment #9
dcmouyard commented