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

Accessibility / a11y TalkBack descriptions #79

Open
benvium opened this issue Apr 12, 2024 · 2 comments
Open

Accessibility / a11y TalkBack descriptions #79

benvium opened this issue Apr 12, 2024 · 2 comments

Comments

@benvium
Copy link

benvium commented Apr 12, 2024

First up, thanks for this really interesting library! It's a challenging problem and your solution is neat.

Do you have any thoughts on how widgets using this could be made accessible with TalkBack?
The ideal case would be that individual components could have contentDescription etc props.
Failing that a reasonable fallback would be the ability to set a contentDescription on the widget root itself - that way a TalkBack user who taps anywhere on the widget could hear something like 'Music Widget. Currently playing all along the watchtower' etc.

For reference, at present when I tap my 'hello world' widget in TalkBack it reads out:

Unlabelled, double-tap to activate labels available use tap with three fingers to view

Thanks!

@sAleksovski
Copy link
Owner

The problem is that this library renders the widget to an image, so there are no Android views to add contentDescription to.

I assume we can implement it in a similar way like the buttons, add an empty FrameLayout with contentDescription on the place of the components that have accessibility settings.

I'll take a look when I have some free time.

@benvium
Copy link
Author

benvium commented Apr 15, 2024

Thanks for the response. Aha - yeah that sounds like a great plan, FrameLayouts would very likely do the trick.

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

No branches or pull requests

2 participants