Skip to content

Commit

Permalink
bug(documentation): add missing aria label
Browse files Browse the repository at this point in the history
fixes #0
  • Loading branch information
Idrinth committed May 23, 2024
1 parent ba71b31 commit cef0c04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/dark-mode-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const DarkModeButton = ({
};

return <button className="theme-toggle-btn"
aria-label={isDarkMode ? 'Light Mode' : 'Dark Mode'}
onClick={toggleLightDarkMode}
>
{isDarkMode ? <IoSunny /> : <IoMoon />}
Expand Down

0 comments on commit cef0c04

Please sign in to comment.