Skip to content

Commit

Permalink
Remove overlay and revert X to hamburger icon when popup disappears (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
ddomdel authored May 5, 2024
1 parent bf66a5c commit 16103c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/plugins/jquery.greedy-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ $(function() {
// Mouse has left, start the timer
timer = setTimeout(function() {
$hlinks.addClass('hidden');
$('.greedy-nav__toggle').removeClass('close');
}, closingTime);
}).on('mouseenter', function() {
// Mouse is back, cancel the timer
Expand Down

0 comments on commit 16103c6

Please # to comment.