Skip to content

Commit

Permalink
fix(theme): light & dark mode checkbox doesn't announce state switches (
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewasche authored Oct 18, 2024
1 parent c9f231a commit 9457833
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ function ColorModeToggle({
disabled={!isBrowser}
title={title}
aria-label={title}
aria-live="polite">
aria-live="polite"
aria-pressed={value === 'dark' ? 'true' : 'false'}>
<IconLightMode
className={clsx(styles.toggleIcon, styles.lightToggleIcon)}
/>
Expand Down

0 comments on commit 9457833

Please sign in to comment.