add toggle theme aria label
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m0s
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m0s
This commit is contained in:
parent
8ef2faee36
commit
f533f1a932
@ -8,7 +8,11 @@ export function ToggleThemeButton(): JSX.Element {
|
|||||||
const { theme, setTheme } = useTheme();
|
const { theme, setTheme } = useTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button className="p-2 rounded-lg" onClick={() => setTheme(theme === "dark" ? "light" : "dark")}>
|
<button
|
||||||
|
className="p-2 rounded-lg"
|
||||||
|
onClick={() => setTheme(theme === "dark" ? "light" : "dark")}
|
||||||
|
aria-label="Toggle Theme"
|
||||||
|
>
|
||||||
{theme === "dark" ? <SunIcon /> : <MoonIcon color="#000" />}
|
{theme === "dark" ? <SunIcon /> : <MoonIcon color="#000" />}
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user