ant-design/ant-design

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

Open

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

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)TypeScript (98,031 star) (54,612 fork)batch import
Inactivehelp wanted⌨️ Accessibility

描述

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

贡献者指南