Fix a11y warnings in layout dropdown
- Add svelte-ignore for daisyUI tabindex requirement - Change logout <a> to <button> for proper semantics
This commit is contained in:
parent
0217f0b4c4
commit
d76af4e427
1 changed files with 2 additions and 1 deletions
|
|
@ -100,12 +100,13 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
||||
<ul tabindex="0" class="menu dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52">
|
||||
<li class="menu-title px-4 py-2">
|
||||
<span class="text-sm opacity-60">{user.username}</span>
|
||||
</li>
|
||||
<li><a href="/auth/change-password">Change Password</a></li>
|
||||
<li><a onclick={logout} class="text-error">Logout</a></li>
|
||||
<li><button type="button" onclick={logout} class="btn btn-ghost text-error w-full justify-start">Logout</button></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue