Skip to content

Commit

Permalink
preventing smartphone navbar toggle button to jump during initial load
Browse files Browse the repository at this point in the history
  • Loading branch information
tobihagemann committed Jul 19, 2024
1 parent 1923e46 commit f809035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="flex items-stretch">
<!-- Toggle Button for Smartphone Navigation -->
<button @click="isNavOpen = !isNavOpen" type="button" class="self-center lg:hidden border border-{{ $textColor }} rounded px-2 py-1 mx-2" aria-label="Toggle Navigation">
<i x-show="isNavOpen" class="fas fa-times fa-fw"></i>
<i x-show="isNavOpen" class="fas fa-times fa-fw" x-cloak></i>
<i x-show="!isNavOpen" class="fas fa-bars fa-fw"></i>
</button>

Expand Down

0 comments on commit f809035

Please sign in to comment.