Steps to replicate the issue (include links if applicable):
- I used Safari and VoiceOver
- Enable a screenreader
- Navigate to a phonos element
What happens?:
- The screen reader will announce the label of the button (IPA content) and then note "button". The aria-description is not called out.
What should have happened instead?:
The ipa label is useless here as it doesn't translate into something useful to pronounce for a screenreader.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
- aria-description is still not that well supported in general (really only on Chrome https://caniuse.com/?search=aria-description )
- I suggest switching it to aria-label instead, with a note to switch to aria-description when that is better supported.
- This will hide the actual ipa (which VoiceOver is actually surprisingly good at spelling out). Possibly append to the label , or it can be separated into another element that is dom logically after the button (but overlayed).