callstack / callstack/react-native-paper

RadioButton.Item has duplicate tabstop

未关闭
#4,775 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
14.5k
派生
2.2k
平均合并
5 天 23 小时
30 天内合并 PR
12

描述

### Current behaviour
RadioButton.Item contains two elements with a tabIndex of 0, so it takes 2 tabs to go past it.

### Expected behaviour
There should be only one tabbable element, since they do the same thing

### How to reproduce?
Issue is visible in the example snack () under the "Radio Button Item" page, at least on the Web platform. Click an item, and then press Tab a few times to observe the behaviour

### Preview

### What have you tried so far?
nothing

### Your Environment

| software | version
| --------------------- | -------
| ios | n/a
| android | n/a
| react-native | 0.80.1
| react-native-paper | 5.14.5
| node | 22.13.1
| npm or yarn | npm 10.9.2
| expo sdk | n/a

贡献指南

打开贡献指南

调研方向

从 RadioButton.Item 的实现开始,在 Web 平台上链接的 Expo Snack 中复现该问题。验证 RadioButton.Item 只暴露一个可通过 Tab 访问的元素,并且按下 Tab 后会越过该元素一次。

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

评估

技术栈
react-native, typescript
领域
accessibility, frontend
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
50/100

把新 issue 发到你的邮箱

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