Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[a11y]: AccordionItem - Prevent keyboard navigation from reaching closed AccordionItem's clickable content #16413

Open
2 tasks done
2nikhiltom opened this issue May 10, 2024 · 0 comments
Labels
component: accordion severity: 2 User cannot complete task, and/or no workaround type: a11y ♿

Comments

@2nikhiltom
Copy link
Contributor

2nikhiltom commented May 10, 2024

Package

@carbon/react

Browser

Firefox

Operating System

No response

Package version

v1.56.0

React version

18.02

Automated testing tool and ruleset

Manual QA

Assistive technology

No response

Description

keyboard navigation reaches an AccordionItem with clickable content even when it's closed

WCAG 2.1 Violation

No response

Reproduction/example

https://stackblitz.com/edit/github-8xbgyj?file=src%2FApp.jsx

Steps to reproduce

<AccordionItem title="Section 1 title">
     <Button>Clickable</Button>
   </AccordionItem>
   <AccordionItem title="Section 2 title">
     <p>
       TestContent
     </p>
   </AccordionItem>

Make a accordion with clickable
Navigate the via keyboard , do not open the accordion
Focus still reaches the clickable inside

Screen.Recording.2024-05-10.at.12.35.25.mov

Code of Conduct

@2nikhiltom 2nikhiltom added severity: 2 User cannot complete task, and/or no workaround type: a11y ♿ component: accordion labels May 10, 2024
@2nikhiltom 2nikhiltom changed the title [a11y]: AccordionItem - keyboard navigation reach an AccordionItem with clickable content even when it's closed [a11y]: AccordionItem - Prevent keyboard navigation from reaching closed AccordionItem's clickable content May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: accordion severity: 2 User cannot complete task, and/or no workaround type: a11y ♿
Projects
Status: ⏱ Backlog
Development

No branches or pull requests

1 participant