Skip to content

Commit

Permalink
fix(theme): announce theme switches when using screen reader. #7667 (#…
Browse files Browse the repository at this point in the history
…8174)

Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
  • Loading branch information
mturoci and slorber committed Oct 5, 2022
1 parent 9821879 commit 44af538
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -52,7 +52,8 @@ function ColorModeToggle({className, value, onChange}: Props): JSX.Element {
onClick={() => onChange(value === 'dark' ? 'light' : 'dark')}
disabled={!isBrowser}
title={title}
aria-label={title}>
aria-label={title}
aria-live="polite">
<IconLightMode
className={clsx(styles.toggleIcon, styles.lightToggleIcon)}
/>
Expand Down

0 comments on commit 44af538

Please sign in to comment.