-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes drawer navigation from drawer to accordion #477
Changes drawer navigation from drawer to accordion #477
Conversation
- Updates some `.c-drawer` styles - Updates `$('.c-primary-nav__arrow').on(click)` event - Removes placeholder `c-drawer__subnav` from `drawer-navigation.twig`
@@ -14,7 +14,6 @@ | |||
<div class="c-drawer__nav"> | |||
<div class="c-drawer__nav-primary"> | |||
{% include '@molecules/navigation/primary-navigation.twig' %} | |||
<ul class="c-drawer__subnav u-theme--background-color--darker"></ul> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eduludi Is it possible to add a class or CSS change that would make this not necessary to remove? Since we have to coordinate with the update of the Wordpress theme, it would be helpful to be able to leave this line in for at least the next month or so to provide some overlap without messing up the existing installations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wasn't necessary to remove but, as the JS part to make it useful is not longer there, I just did it.
Now I rolled back that change and only two files (CSS and JS) are being modified by this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem I'm seeing is that if you don't remove it, the menu is still unusable on the phone, as it slides out a blank drawer... like before, but with nothing in it. Not sure if that can be hidden?
This is still in need of some work, as the video shows, the overlays are still visible with the most recent code. |
- It was being triggered in small resolutions after resizing from a larger one - This caused expand arrows to point in the wrong direction
This replaces the "sub-drawer" behaviour from drawer menu on mobile, with an accordion-like menu.
.c-drawer
styles:$('.c-primary-nav__arrow').on(click)
eventc-drawer__subnav
fromdrawer-navigation.twig
(only used to hold the cloned menu item)