Skip to content

Commit

Permalink
[gatsby-theme-docz]: add aria-label attribute to theme button (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-lelain authored Feb 9, 2020
1 parent 0ed0153 commit e81286a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/gatsby-theme-docz/src/components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ export const Header = props => {
</Box>
)}
{showDarkModeSwitch && (
<button sx={styles.headerButton} onClick={toggleColorMode}>
<button
sx={styles.headerButton}
onClick={toggleColorMode}
aria-label={`Switch to ${colorMode} mode`}
>
<Sun size={15} />
</button>
)}
Expand Down

0 comments on commit e81286a

Please sign in to comment.