Duplicate ID when multiple language switchers are present on the same page
-
Hi,
I recently started using your service and I noticed some accessibilities issues when doing https://pagespeed.web.dev/ tests on the website. First of all, if I enable more than one language switcher on my page (ex: header and footer), I will get duplicate IDs on the page
id="weglot-language-en"
.Furthermore, I got the following issues:
“Elements with an ARIA?[role]
?that require children to contain a specific?[role]
?are missing some or all of those required children.”The item in question is the following:
<aside class="country-selector weglot-inline weglot-widget weglot-widget-block" tabindex="0" aria-expanded="false" role="listbox" aria-activedescendant="weglot-language-fr" aria-label="Language selected: French">
Seems like each child of a role
listbox
should have a role ofoption
, which isn’t the case. See this article for more detials: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_roleThanks
- The topic ‘Duplicate ID when multiple language switchers are present on the same page’ is closed to new replies.