-
Notifications
You must be signed in to change notification settings - Fork 4
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
ANDROID-15075 ListRowItem Switch & CheckBox a11y compose #377
base: main
Are you sure you want to change the base?
Conversation
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.
Good work!
library/src/main/java/com/telefonica/mistica/compose/list/ListRowItem.kt
Show resolved
Hide resolved
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.
Great job! 👏🏼
Interactive lists in composeAccording to spec, the interactive lists should be like one element to the talkback focus, in classic this is working as expected, but in compose seems that no matter the list is informative or interactive (navigation) the elements are focused individually. Video of the behaviour: Record_2024-09-04-11-36-33.mp4(Some texts are not announced, but this is an issue with my phone not able to handle talkback and screen recording at the same time The version where I'm seeing this issue is: https://install.appcenter.ms/orgs/tuenti-organization/apps/mistica-catalog/distribution_groups/public/releases/592 (Just in case I'm not testing in the latest version) |
It was agreed in the Teams channel This is compose and information cells, so the focus is individual with specific order as it is in iOS (not as in classic views). |
Resolved offline, I was assuming that all list w/chevron were interactive, but the cases tested didn't have onClick. The behaviour of the interactive list in compose works as expected |
📱 New catalog for testing generated: Download |
Badges behaviour in list with onClickThe badge should no have an independent focus of the list, currently it seems that:
Read badges contentI see value in allow to provide a contentDescription for the badge component i would keep that change in the badge for other uses. In the list component we decided to remove the content of the badges of the concatenated content and make them in all cases invisible to screen readers (so the should not be focusable content even if the list is informative). Why this?
The option we concluded that was the best experience for users is to delegate that responsibility in the product implementation phase, where the context can be controlled, allowing to provide a custom accesibilityLabel to the whole list where this information can be included in the right way. Revisiting the specs I detected that this behaviour is not as well explained as should be, so i updated the section. |
…A11yCompose # Conflicts: # library/src/main/java/com/telefonica/mistica/compose/badge/Badge.kt # library/src/main/java/com/telefonica/mistica/compose/list/ListRowItem.kt
📱 New catalog for testing generated: Download |
🥅 What's the goal?
Align ListRowItem accessibility for Compose according to new Figma definition: https://www.figma.com/design/Be8QB9onmHunKCCAkIBAVr/%F0%9F%94%B8-Lists-Specs?node-id=4977-5442&t=iqE1tr998GXqKVZ4-4
🚧 How do we do it?
☑️ Checks
🧪 How can I test this?
Current.Ordering.mov
New.Ordering.mov
New.Toggleables.mov