ant-design / ant-design

An enterprise-class UI design language and React UI library
https://ant.design
MIT License
92.55k stars 49.84k forks source link

Axe accessibility issue with Button inside latest Antd 4.x Collapse when a Button is present #31133

Closed abhishekahuja87 closed 3 years ago

abhishekahuja87 commented 3 years ago

Reproduction link

Edit on CodeSandbox

Steps to reproduce

I see accessibility issue when using Axe accessibility chrome plugin on my App which has Collapse from Antd 4.x

Issue: Nested interactive controls are not announced by screen readers

Reason: Since there is a button in the accordion

If I remove the button, the above accessibility is solved. But I would like to have the button

I also tried to replace

afc163 commented 3 years ago

https://github.com/ant-design/ant-design/issues/31123#issuecomment-868283380

abhishekahuja87 commented 3 years ago

Even if I apply collapsible="header" on , I get the Accessibility issue. please suggest. Also I would like to specify header as well as the arrow button as trigger point. How to achieve that

afc163 commented 3 years ago

@abgaryanharutyun wait for https://github.com/react-component/collapse/pull/215

abhishekahuja87 commented 3 years ago

Hi, Thanks, When can I expect the above mentioned fix?