improve accordtion

This commit is contained in:
2025-04-29 12:42:52 -03:00
parent f535e1aa25
commit 52d0e4755f
5 changed files with 14 additions and 9 deletions

View File

@@ -1,7 +1,8 @@
<div
x-data="{ open: false }"
class="bg-white/10 rounded-lg w-full"
class="bg-white/10 w-full [&:not([aria-expanded='true']):hover]:outline rounded-lg outline-white/15"
:class="{'bg-white/15': open === true}"
x-bind:aria-expanded="open"
>
<slot />
</div>