ant-design/ant-design

Tabs not selectable with a keyboard when screen reader is not activated

开放

#53,612 创建于 2025年4月23日

 (2 条评论) (0 个反应) (0 位负责人)TypeScript (54,612 个派生)batch import
Inactivehelp wanted⌨️ Accessibility

仓库指标

星标
 (98,031 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Reproduction link

https://ant.design/components/tabs

Steps to reproduce

  1. Use a keyboard to navigate to tabs
  2. Iterate through the tabs with the arrow keys
  3. Press spacebar to select a tab (this does not work)
  4. Turn on VoiceOver
  5. Iterate through the tabs with the arrow keys
  6. Select a tab with ctrl option spacebar (this works)

What is expected?

A tab should be selectable when the screen reader is not active

What is actually happening?

A tab is not selectable with the screen reader is not active, but is selectable when it is

Environment Info
antd 5.24.7
React 18.2.0
System macOS Sequoia 15.4
Browser Chrome 135.0.7049.42

贡献者指南