compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Order of accessibility nodes is wrong

Open SebastianAigner opened this issue 1 year ago • 2 comments

1.6.10-rc01

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

Screenshot 2024-05-10 at 11 14 28

SebastianAigner avatar May 10 '24 09:05 SebastianAigner

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.

elijah-semyonov avatar May 10 '24 09:05 elijah-semyonov

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.

tylerwilson avatar May 23 '24 15:05 tylerwilson

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Jul 14 '24 14:07 okushnikov