π€ Adds accessibility descriptions on inline actions
Fixes #20212
To Test:
- Open the notifications tab
- Turn talkback on
- Browse through the list
- Focus on a liked post or comment
- Verify that it is announce as "Liked"
- Focus on a not like post or comments
- Verify that the "Like" action is announced
- Focus on a sharable post
- Verify that the "Share" action is announced
- Verify that no action is announced on list items without an action
Regression Notes
-
Potential unintended areas of impact
- Notifications
-
What I did to test those areas of impact (or what existing automated tests I relied on)
- Manual testing
-
What automated tests I added (or what prevented me from doing so)
- N/A
PR Submission Checklist:
- [ ] I have completed the Regression Notes.
- [x] I have considered adding accessibility improvements for my changes.
- [ ] I have considered if this change warrants user-facing release notes and have added them to
RELEASE-NOTES.txtif necessary.
Testing Checklist:
- [ ] WordPress.com sites and self-hosted Jetpack sites.
- [ ] Portrait and landscape orientations.
- [ ] Light and dark modes.
- [ ] Fonts: Larger, smaller and bold text.
- [ ] High contrast.
- [ ] Talkback.
- [ ] Languages with large words or with letters/accents not frequently used in English.
- [ ] Right-to-left languages. (Even if translation isnβt complete, formatting should still respect the right-to-left layout)
- [ ] Large and small screen sizes. (Tablet and smaller phones)
- [ ] Multi-tasking: Split screen and Pop-up view. (Android 10 or higher)
π² You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
| App Name | Jetpack |
|
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr20214-1aaecf7 | |
| Commit | 1aaecf745716f27f7469247b7fe5820255f19365 | |
| Direct Download | jetpack-prototype-build-pr20214-1aaecf7.apk |
π² You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
| App Name | WordPress |
|
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr20214-1aaecf7 | |
| Commit | 1aaecf745716f27f7469247b7fe5820255f19365 | |
| Direct Download | wordpress-prototype-build-pr20214-1aaecf7.apk |
Thank you for reviewing @mkevins π
One subtle observation is that I had to swipe over to the button to hear it announced. I.e. the liked or not-liked status was not announced on the notification itself.
Good point π Tbh I didn't consider this and went with the just adding the status on the button for simplicity. Thinking of it now I think it might complicate the announcement since the like status would need to be duplicated on the action button π€
it might complicate the announcement since the like status would need to be duplicated on the action button
True, which I think means I'd lean toward leaving it as is.. I just wanted to mention this in case it was unexpected, because when I read the testing steps, I thought it would announce it on each row. Tbh, I'm not a "typical user" of talkback, so I don't have a sense of "normal". It seems ok to me, though, to have the button be separate, and have the announcement only on it. π€·ββοΈ
I'll leave this as is for now and we may iterate if we have accessibility feedback on this.