You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Collapse: header (role="button") does not toggle with Space key and has no aria-controls #59684
Space toggles the panel, like Enter, as expected for an element with role="button" (WAI-ARIA Authoring Practices, Button and Accordion patterns), without scrolling the page.
The header references its panel with aria-controls, and the panel has the matching id.
What is actually happening?
Only Enter toggles the panel; Space scrolls the page instead (WCAG 2.2 SC 2.1.1 Keyboard).
The header has role="button" and aria-expanded but no aria-controls, and the panel content has no id (WCAG 2.2 SC 4.1.2).
Environment
Info
antd
6.6.8
React
19.x
System
Windows 11
Browser
Chrome (latest)
The fix belongs to @rc-component/collapse (Panel component, collapsibleProps):
Activity
fix(a11y): toggle panel with Space and link header to panel with aria…
fix(a11y): link panel header to its content with aria-controls