diff --git a/packages/docusaurus-theme-classic/src/theme/ColorModeToggle/index.tsx b/packages/docusaurus-theme-classic/src/theme/ColorModeToggle/index.tsx index e2d0c297f63c..5e0f020ce5c4 100644 --- a/packages/docusaurus-theme-classic/src/theme/ColorModeToggle/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/ColorModeToggle/index.tsx @@ -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'}>