Steps to replicate the issue (include links if applicable):
on mobile:
- using a screen reader, navigate through a preference section
- focus on a toggle
What happens?:
the screen reader narrates the state of the toggle switch, but does not read the title or label for the toggle.
What should have happened instead?:
the title and description of the option being toggled should be narrated. Try the same thing with checkboxes on desktop to experience the correct behavior.
Software version (skip for WMF-hosted wikis like Wikipedia):
N/A
Other information (browser name/version, screenshots, etc.):
It might be worth checking other OOUI toggle implementations to see if any of them maintain accessibility:
https://codesearch.wmcloud.org/deployed/?q=OO.ui.ToggleSwitchWidget&files=.*%5C.js&excludeFiles=&repos=