When designing a new app or enabling access for an existing app, one needs to plan for the accessibility of the app. Testing user interface is very different from testing accessibility, and Apple provides a tool called VoiceOver to do the same.
VoiceOver can convert text to speech for webpages, and Accessible Rich Internet Applications (ARIA) markup applications can read out dynamic contents.
To turn VoiceOver on or off: Command+F5
Pause: Control
Start reading again: Control + Option + A
Read one element at a time: Control + Option + Right Arrow
Show the "Rotor:" Control + Option + U (Then use right/left arrow keys to toggle categories, and down/up arrow keys to select an option)
Navigate through links and form controls: Tab
In order to access enable any app for assistive technology like VoiceOver, it is better to use Accessibility Inspector, which Apple provides, in order to view the accessibility information.
Before using Accessibility Inspector enable permission for it to control your computer. Go to Security and Privacy Preferences > Privacy > Accessibility > Enable by Checking the box.
After launching the Accessibility Inspector move the mouse over the UI element you want to inspect. If you are using VoiceOver to navigate, use the command Ctrl+Command+F5 to navigate. Press Command+F7 to lock the Accessibility Inspector at a location and do further attributes analysis for that location. Accessibility Inspector can be used for modifying any property that is marked (W).
Accessibility Verifier displays the accessibility hierarchy comprising of the instantiated objects in an app.
To launch Accessibility Verifier, choose Accessibility Inspector > Accessibility Verifier. Prior to that enable permission for Accessibility Verifier at the Security preferences.
Accessibility Verifier can be used for performing the following tests:
Once the Accessibility Verifier runs the test, it displays the issues as warnings and errors. Eliminating those errors may not guarantee a perfectly accessible app but it ensures that the app or the webpage is accessible.
Sign up to our bi-weekly newsletter for a bite-sized curation of valuable insight from the Sitecore community.