Skip to content

Commit f30cf2a

Browse files
committed
remove title prop
1 parent 9273140 commit f30cf2a

File tree

1 file changed

+4
-1
lines changed
  • packages/docusaurus-theme-classic/src/theme/ColorModeToggle

1 file changed

+4
-1
lines changed

packages/docusaurus-theme-classic/src/theme/ColorModeToggle/index.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,16 @@ function ColorModeToggle({
127127
onChange(getNextColorMode(value, respectPrefersColorScheme))
128128
}
129129
disabled={!isBrowser}
130-
title={title}
131130
aria-label={title}
131+
132132
// aria-live disabled on purpose - This is annoying because:
133133
// - without this attribute, VoiceOver doesn't annonce on button enter
134134
// - with this attribute, VoiceOver announces twice on ctrl+opt+space
135135
// - with this attribute, NVDA announces many times
136136
// aria-live="polite"
137+
138+
// Title leads to double announcements in NVDA
139+
// title={title}
137140
>
138141
<CurrentColorModeIcon />
139142
</button>

0 commit comments

Comments
 (0)