Skip to content

Commit

Permalink
added associated label to theme toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
ZibanPirate committed Sep 19, 2024
1 parent 9bc7b03 commit 69b4d80
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web/src/components/top-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function TopBar({ version, links }: TopBarProps): JSX.Element {
</ul>
</div>
<div>
<label className="flex cursor-pointer gap-2">
<label htmlFor="theme-toggle" className="flex cursor-pointer gap-2">
<svg
xmlns="http://www.w3.org/2000/svg"
width="20"
Expand All @@ -85,7 +85,12 @@ export function TopBar({ version, links }: TopBarProps): JSX.Element {
>
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<input type="checkbox" value="dzcodeLight" className="theme-controller toggle" />
<input
id="theme-toggle"
type="checkbox"
value="dzcodeLight"
className="theme-controller toggle"
/>
<svg
xmlns="http://www.w3.org/2000/svg"
width="20"
Expand Down

0 comments on commit 69b4d80

Please sign in to comment.