Skip to content

Commit

Permalink
♿️ theme switcher add aria label
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonMao committed Nov 7, 2023
1 parent 50008ec commit bcae558
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/ThemeSwitcher/ThemeSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ function ThemeSwitcher({ className }: ThemeSwitcher) {
}

return (
<button onClick={handleClick} className={className}>
<button
aria-label="theme switcher"
className={className}
onClick={handleClick}
>
{isDarkTheme ? (
<BsMoonFill size="1.25rem" />
) : (
) : (
<BsSunFill size="1.25rem" />
)}
</button>
Expand Down

0 comments on commit bcae558

Please sign in to comment.