Expose the timeline item long press and swipe to reply as TalkBack actions - #7458
Conversation
Long pressing a timeline item opens the action list, and swiping it starts a reply. Neither gesture is reachable with a screen reader enabled, so those two actions were unavailable to TalkBack users. Publish them as accessibility custom actions on the event row, reusing the existing "Message actions" and "Reply" strings. The reply action is only offered when the user is allowed to reply, matching the swipe.
|
Thank you for your contribution! Here are a few things to check in the PR to ensure it's reviewed as quickly as possible:
|
jmartinesp
left a comment
There was a problem hiding this comment.
Thanks, this is quite handy.
|
@hayaksi1 can you record the screenshots please? We have screenshot with a11y details. |
|
|
cd7e1a0 to
fc2db01
Compare
|
Done! |
|
@copilot resolve the merge conflicts in this pull request |
…e-talkback-actions # Conflicts: # tests/uitests/src/test/snapshots/images/features.messages.impl_MessagesViewA11y_en.png
|
@bmarty Done. |
I do not see updated screenshot in the PR. I'll trigger the workflows again. |
|
@bmarty Done. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #7458 +/- ##
===========================================
- Coverage 80.86% 80.83% -0.03%
===========================================
Files 2771 2771
Lines 81398 81421 +23
Branches 11168 11170 +2
===========================================
- Hits 65822 65819 -3
- Misses 11273 11300 +27
+ Partials 4303 4302 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Content
A timeline item carries two gesture-only actions: long press opens the message action list, and a horizontal swipe starts a reply. Neither is reachable with TalkBack enabled, so a screen reader user cannot reach the action list at all — this is what the issue reports.
Publish both as accessibility custom actions on the event row, reusing the existing "Message actions" and "Reply" strings so no new translations are needed. The reply action is only offered when the user is allowed to reply, matching the condition that enables the swipe.
The scope is deliberately limited to restoring actions that already exist for sighted users. The larger list discussed on the issue — react, edit, share, links, view profile — is a product decision about which actions deserve to be surfaced directly rather than through the action list, so it is left out.
Motivation and context
Part of #4600.
Tests
No new automated test: the module's timeline view tests assert on rendered content, and Robolectric does not run the accessibility delegate that turns
customActionsinto TalkBack actions, so a test here would only re-assert the semantics property I just set.Manual check: with TalkBack on, focus a message and open the local context menu — "Message actions" and "Reply" are listed, and each performs the same action as the gesture.
Tested devices
Checklist