-
Notifications
You must be signed in to change notification settings - Fork 266
[a11y] Add content descriptions to room list item indicators #5236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[a11y] Add content descriptions to room list item indicators #5236
Conversation
These can now be read aloud as 'ongoing call', 'new messages', 'new mentions'.
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5236 +/- ##
========================================
Coverage 80.21% 80.21%
========================================
Files 2241 2241
Lines 61484 61491 +7
Branches 7791 7793 +2
========================================
+ Hits 49319 49326 +7
Misses 9310 9310
Partials 2855 2855 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 2 suggestions that may be handled later.
@@ -29,8 +33,10 @@ fun UnreadIndicatorAtom( | |||
color: Color = ElementTheme.colors.unreadIndicator, | |||
isVisible: Boolean = true, | |||
) { | |||
val contentDescription = stringResource(CommonStrings.a11y_notifications_new_messages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UnreadIndicatorAtom
is also used for invitation, so maybe let contentDescription
be a parameter and add a string a11y_notifications_new_invitation
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I can play with the traversalIndex
here, but something tells me it'll be harder than that 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the end I had to use zIndex
again. It seems like traversalIndex
won't work for nodes that merge their descendants.
…d before the latest event of the room summary
|
Content
What the title says. These can now be read aloud as 'ongoing call', 'new messages', 'new mentions'.
Motivation and context
Closes https://github.com/element-hq/customer-success/issues/573.
Tests
Enable a TTS solution like Talkback, then tap on different room list items/summaries.
Tested devices
Checklist