We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8010dc commit 671957fCopy full SHA for 671957f
packages/ui-components/src/Common/LanguageDropDown/index.tsx
@@ -38,13 +38,15 @@ const LanguageDropdown: FC<LanguageDropDownProps> = ({
38
{availableLanguages.map(({ name, code, localName, hrefLang }) => (
39
<DropdownMenu.Item
40
key={code}
41
- lang={hrefLang}
+ aria-label={name}
42
onClick={() => onChange({ name, code, localName, hrefLang })}
43
className={classNames(styles.dropDownItem, {
44
[styles.currentDropDown]: code === currentLanguage,
45
})}
46
>
47
- {localName}
+ <span lang={hrefLang} aria-hidden="true">
48
+ {localName}
49
+ </span>
50
</DropdownMenu.Item>
51
))}
52
</div>
0 commit comments