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]: Tree view component does not expand/collapse node on Enter key #18837

Open
2 tasks done
anagha2891 opened this issue Mar 17, 2025 · 1 comment
Open
2 tasks done

Comments

@anagha2891
Copy link

Package

@carbon/react

Browser

Chrome

Operating System

MacOS

Package version

v11

React version

v17

Automated testing tool and ruleset

IBM Equal Access Accessibility Checker Version 4.0.0

Assistive technology

No response

Description

The expand/collapse feature of the nodes which works on click does not seem to work with Enter key. Its throwing an error instead.
This issue can be reproduced in the Carbon Components doc if you click Enter a couple of times on a node with expand option

WCAG 2.1 Violation

Yes

Reproduction/example

https://react.carbondesignsystem.com/?path=/docs/components-treeview--overview

Steps to reproduce

  1. navigate with Tab key to any of the nodes with expand/collapse option for Tree view
  2. click on Enter. Nothing happens
  3. Click on Enter a couple of times more.
  4. Page errors out.

Suggested Severity

Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.

Code of Conduct

@riddhybansal
Copy link
Contributor

Here is the slack conversation for the same .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ⏱ Backlog
Development

No branches or pull requests

2 participants