react / react/react-native

Accessibility issue - Android with TalkBack - accessibilityRole="link" is not available when user tries to navigate via links (TalkBack menu)

未关闭
#45,612 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Issue: Author Provided Repro Platform: Android
主要语言
C++
星标
127k
派生
25.3k
平均合并
1 天 23 小时
30 天内合并 PR
4

描述

Description

Used accessibilityRole="link" on a Pressable and it's semantics is properly announced to TalkBack.

The problem is that users can not navigate via links when they want to use "TalkBack menu" feature in the TalkBack (https://support.google.com/accessibility/android/answer/6006598?hl=en).

TalkBack menu navigate by Headings, Paragraphs, Buttons etc. seem to work fine, but links do not work.

Steps to reproduce

Basically it drills down to this part of code:

<Pressable style={styles.link} onPress={handlePress} accessibilityRole="link"> <Text>{name}</Text> </Pressable>

I've made a simple Expo Snack that can be used for testing: https://snack.expo.dev/HjDqJulTWJJtcolH3eHue

Expo SDK: 51.0.0
Android: 14
TalkBack version: Accessibility 15.1.00.7

React Native Version

0.74.3

Affected Platforms

Runtime - Android

Output of npx react-native info
Not Applicable
Stacktrace or Logs
Not Applicable
Reproducer

https://snack.expo.dev/HjDqJulTWJJtcolH3eHue

Screenshots and Videos

Please check https://youtu.be/I-KUxd3EZdc

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 Pressable accessibilityRole="link" 路径开始,并在 Android 14 上使用 TalkBack 通过链接的 Expo Snack 重现该问题。将 TalkBack 菜单中的链接导航与正常工作的标题、段落和按钮进行比较;当 Pressable 暴露的链接可以通过该导航访问时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, react-native
领域
accessibility, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。