The language menu does not say which language each option is written in #64
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#52 Show each language's flag in the language menu
Postulo/postulo
Reference
Postulo/postulo#64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is wrong
Every option in the language picker is written in its own language, which is right:
None of them carries a
langattribute. Counted on the rendered page: 0 options withlang=.A screen reader pronounces text with the voice and rules of the page's language, which
base.htmldeclares as the person's current one. So somebody using Postulo in English isread български with English letter-to-sound rules, and Ελληνικά is very often skipped
entirely or spelled out one character at a time. The list of languages is precisely the
place where somebody who cannot read the current interface language has come to escape it,
and it is the one list where this matters most.
This is WCAG 2.2 success criterion 3.1.2, Language of Parts, level AA — a criterion
Postulo's stated commitment covers, and one axe-core has no rule for, which is why the
suite is green.
Shape
lang="<code>". The code is already the option's own value, so this isa widget that renders
langfrom the choice rather than new data.language, not the option's, so it must not be inside the
langscope. Either split itinto its own element, or put
langon a<span>around the name only, which means thepicker stops being a bare
<select>. A<select>allowslangon<option>andnothing inside it, so the simplest honest answer is: mark the option with the language's
code and move the review note out of the option text into the field's help, or accept
that four words are read in the wrong voice and mark the option anyway.
and a CV's language field.
Classification
Bug, accessibility. Not breaking.
Depends on
Nothing. #52 adds flags to the same list and should build on whatever shape this settles,
rather than the two being fitted into the option text separately.