feat: replace vanilla JS by AlpineJS

This commit is contained in:
2024-08-04 20:56:33 +02:00
committed by florian_briand
parent 23f85c5e92
commit aba6c101cb
3 changed files with 24 additions and 41 deletions

View File

@ -1,5 +1,8 @@
<!-- Profile dropdown -->
<div class="relative ml-3">
<div
class="relative ml-3"
x-data="{ profileOpen: false }"
>
<div>
<button
type="button"
@ -8,6 +11,7 @@
aria-controls="profile-dropdown"
aria-expanded="false"
aria-haspopup="menu"
x-on:click="profileOpen = ! profileOpen"
>
<span class="absolute -inset-1.5"></span>
<span class="sr-only">Open user menu</span>