-
Bug
-
Resolution: Fixed
-
Major
-
3.9.10, 3.10.7, 3.11.3
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MDL-72885-master-2 -
-
0
-
HQ Team International CIH2-225
When 2 or more languages are installed in Moodle, a language selection menu is normally added to the custom menu. The languages in the dropdown menu are listed in their respected language. So far, this works great!
However, the listed languages do not have a lang="xx" attribute causing screen readers to be unable to read the list of languages correctly. This is an accessibility issue.
In addition, the links for these languages contain a redundant title attribute which is always identical to the link text. Some screen readers may be configured to read title tags resulting in the text being read twice. This is also an accessibility issue.
Example:
{{<a class="dropdown-item" role="menuitem" href="https://example.com/admin/search.php?query&lang=de" title="Deutsch (de)">Deutsch (de)</a>}}
{{<a class="dropdown-item" role="menuitem" href="https://example.com/admin/search.php?query&lang=en" title="English (en)">English (en)</a>}}
{{<a class="dropdown-item" role="menuitem" href="https://example.com/admin/search.php?query&lang=fr" title="Français (fr)">Français (fr)</a>}}