You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2021. It is now read-only.
is perfectly formed, but has a11y issues. Screenreaders would pronounce such as: "navigation - list with 3 items - dee selected - frrr - enn"
which doesn't make too much sense. It would better to have either addtional (invisible) screenreader texts which would mean something like
<a href="/de/"><span class="screenreader-text">Webseite in deutsch</span>DE</a>
<a href="/fr/"><span class="screenreader-text">Site web en français</span>FR</a>
<a href="/en/"><span class="screenreader-text">Website in english</span>EN</a>
Second best solution would be to have ARIA-labels like:
<a href="/de/" aria-label="Webseite in deutsch">DE</a>
<a href="/fr/" aria-label="Site web en français">FR</a>
<a href="/en/" aria-label="Website in english">EN</a>
The text within the <span> or aria-label could be assigend either within the menu-item in Appearance > Menu or under Network > Sites > SiteID=n > MultilingualPress
The labels as such don't need to be translateable as they're attached to the Language Switcher which is on all language versions the same.
Version Information
Steps to Reproduce
What I Expected
Menu for let's say
is perfectly formed, but has a11y issues. Screenreaders would pronounce such as:
"navigation - list with 3 items - dee selected - frrr - enn"which doesn't make too much sense. It would better to have either addtional (invisible) screenreader texts which would mean something like
whereas
.screenreader-text {visibility: hidden; display: none;}Second best solution would be to have ARIA-labels like:
The text within the
<span>oraria-labelcould be assigend either within the menu-item in Appearance > Menu or under Network > Sites > SiteID=n > MultilingualPressThe labels as such don't need to be translateable as they're attached to the Language Switcher which is on all language versions the same.