Linden Library offers five workshops this autumn and asks everyone who signs up to rank them in order of preference. Some people sign up from a phone. This use case follows a blind person who does this ranking on an iPhone, using the VoiceOver screen reader.
The first use case, “Ranking choices by drag and drop, with the keyboard and a screen reader”, shows why sorting by keyboard and dragging is not enough on a phone. The component below adds arrows between the two lists, and buttons under the sorted list.
Try the ranking
Tap a card to choose it, then an arrow or a button. Dragging and the keyboard work too.
Move through the cards with ↑ and ↓. Enter activates or deactivates the card. Active card: ↑ and ↓ move it, → sends it to “My workshops, in order of preference”, ← sends it back to “Workshops on offer”, Enter or Esc deactivates it (with NVDA, prefer Enter: Esc returns to browse mode). With no active card, ← and → (or Tab) move from one list to the other. With a mouse or a finger, drag and drop the cards where you want them. By touch or with a mobile screen reader: tap a card to choose it, then the “Add” or “Remove” arrow, or the “Move up” and “Move down” buttons under the sorted list.
Workshops on offer
- Story time Wednesday at 10 am, for ages 4 to 8
- Introduction to braille Saturday at 2 pm, for beginners
- Reserving books online Tuesday at 6 pm, bring your phone
- Book club Thursday at 7 pm, one book a month
- Reading aloud Friday at 5 pm, texts of your choice
All the cards are sorted.
My workshops, in order of preference
No card sorted yet. Tap a card in the first list, then the “Add” arrow.
VoiceOver gestures
On an iPhone, VoiceOver replaces the keyboard with gestures. The person swipes right or left to move to the next or previous element, and VoiceOver announces it. They double-tap anywhere on the screen to activate the element announced. A component usable with VoiceOver must therefore offer each action as an element you can reach by swiping and activate with a double tap: a button, a link, a checkbox.
The journey, step by step
Reaching the list
Swiping right, the person reaches the heading “Workshops on offer (5)”, then the cards one by one, with their title and description.
RGAA 7.1 (French original): Chaque script est-il, si nécessaire, compatible avec les technologies d’assistance ? WCAG 2.2: 4.1.2 Name, Role, Value.
Choosing a card
On “Introduction to braille”, they double-tap. The component announces: “Introduction to braille chosen. Use the arrows or the buttons to move it.” On screen, the card gets a thick border and the “Active” badge.
RGAA 7.5 (French original): Dans chaque page web, les messages de statut sont-ils correctement restitués par les technologies d’assistance ? WCAG 2.2: 4.1.3 Status Messages.
Adding it to their workshops
They swipe to the “Add” arrow, between the two lists, and double-tap. The full accessible name of this button is “Add to “My workshops, in order of preference””. The component announces: “Introduction to braille added to “My workshops, in order of preference”, rank 1 of 1.” If they activate this arrow without choosing a card first, they hear: “First choose a card in “Workshops on offer”.”
RGAA 7.3 (French original): Chaque script est-il contrôlable par le clavier et par tout dispositif de pointage (hors cas particuliers) ? WCAG 2.2: 2.1.1 Keyboard.
Adjusting the rank
After adding a second workshop, they choose it in “My workshops”, then activate the “Move up” button under that list. The component announces “Rank 1 of 2”. Focus stays on the button: another double tap moves the card up again, without having to look for it.
RGAA 7.5 (French original): Dans chaque page web, les messages de statut sont-ils correctement restitués par les technologies d’assistance ? WCAG 2.2: 4.1.3 Status Messages.
Removing a workshop
To change their mind, they choose the card in “My workshops”, then activate the “Remove” arrow, between the two lists. The component announces that the card is removed, and the card goes back to “Workshops on offer”.
RGAA 7.3 (French original): Chaque script est-il contrôlable par le clavier et par tout dispositif de pointage (hors cas particuliers) ? WCAG 2.2: 2.1.1 Keyboard.
What can get in the way on a phone
- Actions limited to the keyboard or dragging. VoiceOver passes on neither arrows nor Enter, and dragging there requires a difficult gesture, with no feedback. Without buttons, the person cannot sort anything.
- Buttons that are too small. The component’s buttons are at least 44 pixels high, so a finger can hit them without aiming.
- Buttons with text that is too short. “Add” alone does not say where the card goes. The button names the destination list, and each group of buttons carries the name of its list.
- Focus that jumps. If focus left the button after each move, the person would have to find it again by swiping before starting over. Here, it stays put.
What we checked
The journey was checked in a browser, at phone width (375 pixels), with simulated touch and with the keyboard. The messages quoted are those the component sends to its status message area. The journey has not yet been checked with VoiceOver on an iPhone: VoiceOver adds its own words to these messages, and we will copy them here after that test.
Further reading
- Ranking choices by drag and drop, with the keyboard and a screen reader, the first use case, and its limits
- Listbox Pattern, W3C ARIA Authoring Practices Guide
- Understanding Success Criterion 2.5.7: Dragging Movements, W3C