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

Dropdown keyboard nav does not work inside datagrids #1361

Open
1 of 3 tasks
TobiasPankner opened this issue Apr 12, 2024 · 1 comment
Open
1 of 3 tasks

Dropdown keyboard nav does not work inside datagrids #1361

TobiasPankner opened this issue Apr 12, 2024 · 1 comment

Comments

@TobiasPankner
Copy link

TobiasPankner commented Apr 12, 2024

Describe the bug

Keyboard navigation between dropdown-items (arrow up/down) does not work when the dropdown is inside a datagrid.
Datagrid elements are focused instead.

How to reproduce

https://stackblitz.com/edit/clarity-15-broken-dropdown-keyboard-nav-vmjztp

Steps to reproduce the behavior:

  1. Place a clr-dropdown somewhere inside of clr-datagrid
  2. Open the dropdown menu
  3. Try to navigate with arrow keys

Expected behavior

The arrow keys should switch around between the dropdown menu items

Versions

Clarity version:

  • v13.x: not tested
  • v15.x
  • Other:

Framework version:
Angular 15

Device:

Reproducible on chrome with Angular 15

Additional notes

Workaround directive:
https://stackblitz.com/edit/clarity-15-broken-dropdown-keyboard-nav-workaround

@kevinbuhmann
Copy link
Member

kevinbuhmann commented Apr 12, 2024

You put a component with arrow key navigation inside another component with arrow key navigation. This is difficult to manage in code and is confusing to users as well as assistive technology. We would recommend finding a more concise UX that does not nest these components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants