-
Notifications
You must be signed in to change notification settings - Fork 226
Accessibility: improve behavior of list items #4626
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
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
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.
Waiting for a design decision about this change:

(asked in https://www.figma.com/design/7TqjqdMBaPpm3IavKsMYu6?node-id=5235-51684&m=dev#1228513902)
This is breaking click on ListItem, needs to push a fix. |
Remove duplication of onChange. As per the documentation, it has to be used only if the behavior is different than the onClick listener of the list item. It also has the effect to read twice the action when the screen reader is one. See #4047 (comment) for more details a11y: remove contentDescription on List item icon, else the text is read twice.
39889cb
to
614e12b
Compare
…ent is also not enabled.
fe78d99
to
ecc7944
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4626 +/- ##
========================================
Coverage 80.01% 80.01%
========================================
Files 2103 2103
Lines 55786 55815 +29
Branches 6939 6957 +18
========================================
+ Hits 44638 44663 +25
- Misses 8755 8757 +2
- Partials 2393 2395 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
onClick = { | ||
state.eventSink( | ||
CreatePollEvents.SetPollKind( | ||
if (state.pollKind == PollKind.Disclosed) PollKind.Undisclosed else PollKind.Disclosed |
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.
I think it would be better to let the Presenter handle this, but as it's not new, feel free to ignore.
Content
Improve accessibility for ListItem.
One example, when long press on a room and select the "Favorite" item, so in this screen:
The current read text is:
so quite wrong and do not give the state of the switch. With this changes, if the switch is on, the read text is:
and if the switch if off, the read text is:
and the switch itself is not focusable, so the next focusable item is the "Settings" item.
Remove callback duplication, that can lead to screen reader focused on the switch itself, which has no added value if the behavior is the same.
Motivation and context
Improve accessibility.
Replacement for #4047
Screenshots / GIFs
Tests
Tested devices
Checklist