Skip to content

Commit 47f6230

Browse files
committed
fix theme selector
1 parent 1e85247 commit 47f6230

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/ThemePicker.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
import { Icon } from "astro-icon/components";
33
---
44

5-
<label class="swap swap-rotate btn btn-ghost rounded-btn">
5+
<label class="btn btn-ghost rounded-btn">
6+
<span class="swap swap-rotate">
67
<input
78
id="theme-toggle"
89
type="checkbox"
910
class="theme-controller"
1011
value="dark"
1112
/>
12-
<Icon name="tabler:sun" class="swap-off" size={22} />
13-
<Icon name="tabler:moon" class="swap-on" size={22} />
13+
<Icon name="tabler:sun" class="swap-off fill-current" size={22} />
14+
<Icon name="tabler:moon" class="swap-on fill-current" size={22} />
15+
</span>
1416
</label>
1517

1618
<script is:inline>

0 commit comments

Comments
 (0)