ant-design/ant-design
在 GitHub 查看Accessibility: Focus on invisible div in tabs while tabbing
Open
#49,680 建立於 2024年7月2日
Inactivehelp wanted⌨️ Accessibility
描述
Reproduction link
Steps to reproduce
- Select first tab
- Use 'Tab' key to move focus
- Focus is lost after moving past last tab because it is focused on hidden div element
What is expected?
Focus should move between interactive elements, and should not disappear at any point
What is actually happening?
Focus visually disappears when landing on the non-interactive and invisible hidden div
| Environment | Info |
|---|---|
| antd | 5.19.0 |
| React | 18.3.1 |
| System | Windows 10 Enterprise |
| Browser | Google Chrome: version 126.0.6478.127 |
antd version: 5.19.0 (I couldn't select version so I put it here) The same issue is here: https://ant.design/components/tabs also it is the same issue like for modal here: https://github.com/react-component/dialog/issues/429