Skip to content
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

Order of accessibility nodes is wrong #4795

Open
SebastianAigner opened this issue May 10, 2024 · 2 comments
Open

Order of accessibility nodes is wrong #4795

SebastianAigner opened this issue May 10, 2024 · 2 comments
Assignees
Labels
accessibility bug Something isn't working ios

Comments

@SebastianAigner
Copy link
Member

1.6.10-rc01

https://github.com/Kotlin/KMP-App-Template/tree/426bead7f26ba27ba1facfbfd1d5c0f7628a437a

Screenshot 2024-05-10 at 11 14 28
@SebastianAigner SebastianAigner added bug Something isn't working submitted labels May 10, 2024
@elijah-semyonov
Copy link
Contributor

elijah-semyonov commented May 10, 2024

Hm, what's the situation on Android? This is a single Element, so based on mismatch of visible text and Accessibility label I assume the data there was merged. The merging of semantics in the subtree is done in the order described here.

We either have a runtime bug that somehow causes this order to be different from order in which underlying nodes are apparently emitted in code, or it's a Google-side bug/(feature?).

A workaround for now would be to use Modifier.clearAndSetSemantics with SemanticsPropertyReceiver.text and explicitly provide the string to be visible by a11y services.

@tylerwilson
Copy link

I have a similar if not the same issue in my app: it will read starting from the second element, go to the end, and then go back and read the first element. I was using a Column, then switched to a LazyColumn, but same result.

Hope the cause can be found and fixed. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility bug Something isn't working ios
Projects
None yet
Development

No branches or pull requests

3 participants