-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
[web]: Semantics differences between iOS/Android and Web #91914
Comments
Here is a gist demonstrating this issue: https://dartpad.dev/?id=33deba3d9833eebc5b5a19803fd7dbcf This Text('This is not an empty group.') Gets read by VoiceOver as:
|
The behavior has changed in Flutter 3, and IMHO it's worse. 😦 When navigating with VoiceOver arrow keys, this Text('This is not a group.') Gets read as a group with three stops:
|
After some investigation I have a solution that fixes the issue "screen readers will enter them, causing the same text to be repeated multiple times". However, I don't yet have a solution that fixes the "group" issue in Chrome. The issue is that browsers other than Safari do not support
So I will go with the following option: <flt-semantics role="text" aria-label="the text of the label" style="...positioning and sizing..." /> This still reads "group" or "empty group" on Chrome, but it satisfies everything else:
For now I will go with this solution and keep searching for a perfect one, if it exists. |
@yjbanov does it make sense to file a chromium bug for |
Yes, I might file one if I find out that it's indeed fixable on the Chromium side. According to https://www.tpgi.com/using-the-text-role/: "this role was considered for ARIA 1.1 but was not ultimately included". So it was intentionally rejected for inclusion in the standard. I'm not sure why it wasn't included. Perhaps there's another way to do the same thing. Or perhaps not all use-cases were considered. I'm trying to get in touch with Chrome's and Google's a11y experts to find an answer. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Some elements are announced by screenreaders as "empty group"
ex: tiles are being categorized as "group", screen readers will enter them, causing the same text to be repeated multiple times
internal bug: b/202046496
The text was updated successfully, but these errors were encountered: