mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 12:52:31 +02:00
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
982187977d
commit
44af538153
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ function ColorModeToggle({className, value, onChange}: Props): JSX.Element {
|
||||||
onClick={() => onChange(value === 'dark' ? 'light' : 'dark')}
|
onClick={() => onChange(value === 'dark' ? 'light' : 'dark')}
|
||||||
disabled={!isBrowser}
|
disabled={!isBrowser}
|
||||||
title={title}
|
title={title}
|
||||||
aria-label={title}>
|
aria-label={title}
|
||||||
|
aria-live="polite">
|
||||||
<IconLightMode
|
<IconLightMode
|
||||||
className={clsx(styles.toggleIcon, styles.lightToggleIcon)}
|
className={clsx(styles.toggleIcon, styles.lightToggleIcon)}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue