What is the problem?
There are things that make Phonos buttons with errors less accessible for screenreader users.
For example:
- If there is an error and no file parameter has been passed, the button does not have an aria-label. So this happens when you are trying to generate audio with IPA or pulling from Wikidata.
- If there is an error and file is passed, the aria-label is "Play audio". As we know already that this button has an error, would could make the aria-label reflect this.
- The error message popup is not accessible to screenreaders (at least not when I tested it with NVDA, Orca and VoiceOver). Therefore, the user does not know what is causing the error.
Steps to reproduce problem
- See examples of error conditions here https://en.wikipedia.beta.wmflabs.org/wiki/Phonos_Errors or https://en.wikipedia.beta.wmflabs.org/wiki/Phonos_Combinations
- Try to use it with different screenreaders (NVDA, Orca, VoiceOver, TalkBack)
Environment
Wiki(s): https://en.wikipedia.beta.wmflabs.org Phonos 0.1.0 (0b9e293) 19:15, 28 February 2023.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | https://phabricator.wikimedia.org/T330851 here |