Skip to content

Commit 835577f

Browse files
ddomdelminyoongi96
authored andcommitted
Remove overlay and revert X to hamburger icon when popup disappears (mmistakes#3958)
the `.hidden-links` popup disappears after you move the cursor out of it. However, the white overlay on the screen does not disappear, as well as the `x` nav button on the top-right, remains as is. Now when you click anywhere on the screen the popup appears again, and the `x` nav button turns back to a hamburger menu button. And when you click on the hamburger menu, the popup disappears. now it's happening the exact opposite. To remedy this, the pop up menu as well as the `x` nav button should also return back to normal once the popup disappears. This commit fixes this issue.
1 parent b197aa8 commit 835577f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/js/plugins/jquery.greedy-navigation.js

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ $(function() {
107107
// Mouse has left, start the timer
108108
timer = setTimeout(function() {
109109
$hlinks.addClass('hidden');
110+
$('.greedy-nav__toggle').removeClass('close');
110111
}, closingTime);
111112
}).on('mouseenter', function() {
112113
// Mouse is back, cancel the timer

0 commit comments

Comments
 (0)