mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-08 17:12:24 +05:30
fix(theme-toggler): improve a11y
This commit is contained in:
parent
8c018dfe33
commit
e2517f3f1f
@ -15,7 +15,7 @@
|
||||
|
||||
<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"}" />
|
||||
<span class="ml-1 sm:hidden">Toggle theme</span>
|
||||
</div>
|
||||
</button>
|
Loading…
Reference in New Issue
Block a user