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

Improve A11ySnapshotTransformer to match Talkback behaviour on PW #1921

Open
luizgrp opened this issue Jan 2, 2024 · 1 comment
Open

Improve A11ySnapshotTransformer to match Talkback behaviour on PW #1921

luizgrp opened this issue Jan 2, 2024 · 1 comment
Labels
a11y Issues related to accessibility

Comments

@luizgrp
Copy link
Member

luizgrp commented Jan 2, 2024

It has a conditional to display only content description when the text semantics is present:

if (it.contentDescription != null) {
drawItem("Content Description \"${it.contentDescription.joinToString(", ")}\"")
} else if (it.text != null) {
drawItem("Text \"${it.text.joinToString(", ")}\"")
}

However, as per #1920 (comment), it seems that either compose or talkback are treating nodes with mergeDescendants = true as separated nodes.

It looks like the elements fetched by A11ySnapshotTransformer should be retrieved with mergeDescendants = false to match the behaviour. The side effect is that the screenshots won't "group" the a11y text boxes with the merged descendants.

@luizgrp luizgrp added the a11y Issues related to accessibility label Jan 2, 2024
@yschimke
Copy link
Collaborator

yschimke commented Jan 2, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Issues related to accessibility
Projects
None yet
Development

No branches or pull requests

2 participants