Skip to content

Commit

Permalink
Fixes Mobile Nav Bug
Browse files Browse the repository at this point in the history
Fixed the problem where the mobile nav menu bar wouldn’t un-hover on
mobile. I feel like this is a flaw in the CSS standard that the hover
pseudo-class isn’t automatically removed ontouchend, resolved by
overriding CSS with inline JS

This closes #38
  • Loading branch information
Fromalaska49 committed Aug 8, 2018
1 parent 20873fc commit ac7327c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<nav class="navbar">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse" aria-expanded="false">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse" aria-expanded="false" ontouchend="this.style.top='0px';this.style.boxShadow='0px 0px 0px 0px #000000';this.style.backgroundColor='inherit';">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
Expand Down

0 comments on commit ac7327c

Please sign in to comment.