Description
The ULS button is currently labeled with either the number of available languages ("196 languages") the currently selected language ("English"). Language variants also just displays the currently selected variant. All these dropdowns don't do a great job of describing the button without further context, especially for people using assistive tech.
Expected
ULS should read out an accessible label like "Change article language- English" or "Change article language, available in X languages".
Language variant button should read out a label like "Change language variant".
Acceptance criteria
- Add aria label to language button with the copy: "Change article language, available in X languages"
- Add aria label to variant switcher with the copy: "Change language variant"
Developer notes
This should be achievable with an aria-label attribute on the h3 in the Menu template.
QA steps
- Pull up an article in modern + legacy Vector (logged in + logged out)
- Check the markup (or test with VO) for the language variant switcher (logged in/out, modern + legacy Vector)
- You should see "Change language variant" i.e. https://phabricator.wikimedia.org/F34643344
- Check the markup (or test with VO) for the language button dropdown (logged in, modern Vector)
You should see "Change article language, available in {{X}} languages"i.e. https://phabricator.wikimedia.org/F34643341- Per update in patch 722552, you should see "Go to an article in another language. Available in {{X}} languages"
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ⬜ | T289523#7403154 |
| 2 | ❓ | T289523#7403154 |
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T289523#7403155 |
| 2 | ❓ | T289523#7403155 |





