fix(theme-toggler): improve a11y

This commit is contained in:
Akis 2022-09-28 20:11:54 +03:00
parent 8c018dfe33
commit e2517f3f1f
Signed by untrusted user: akis
GPG Key ID: 267BF5C6677944ED

View File

@ -15,7 +15,7 @@
<DarkMode bind:theme /> <DarkMode bind:theme />
<div on:click={toggle} class="cursor-pointer flex items-center"> <button on:click={toggle} class="cursor-pointer flex items-center py-1 bg-transparent border-0 font-[var(--font-primary)]">
<div class="i-fa6-solid:{theme === "dark" ? "sun" : "moon"}" /> <div class="i-fa6-solid:{theme === "dark" ? "sun" : "moon"}" />
<span class="ml-1 sm:hidden">Toggle theme</span> <span class="ml-1 sm:hidden">Toggle theme</span>
</div> </button>