add toggle theme aria label
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m0s

This commit is contained in:
Lee 2024-04-17 18:38:18 +01:00
parent 8ef2faee36
commit f533f1a932

@ -8,7 +8,11 @@ export function ToggleThemeButton(): JSX.Element {
const { theme, setTheme } = useTheme();
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" />}
</button>
);