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

[Accessibility] Dropdown menu not keyboard-navigable and lacks focus styles #544

Open
2 tasks done
naman9271 opened this issue Jan 26, 2025 · 2 comments · May be fixed by #545
Open
2 tasks done

[Accessibility] Dropdown menu not keyboard-navigable and lacks focus styles #544

naman9271 opened this issue Jan 26, 2025 · 2 comments · May be fixed by #545
Labels
bug Something isn't working

Comments

@naman9271
Copy link

naman9271 commented Jan 26, 2025

Describe the bug.

The dropdown menu (e.g., "Venue" or navigation items) is not fully accessible via keyboard navigation. Users cannot open/close the dropdown using the keyboard, and focus states are missing, making it difficult for keyboard/screen reader users to interact.

Expected behavior

  • Dropdown opens/closes with Enter, Space, or Arrow keys.
  • Focus is visible on the trigger and dropdown items.
  • Users can navigate dropdown options with Tab or arrow keys.
  • Actual Behavior
  • Dropdown does not respond to keyboard input.
  • No visual focus indicator on the trigger or menu items.

Possible Solution

  • Add keyboard event handlers (keydown for Enter, Space, Arrow keys).
  • Implement ARIA attributes (aria-expanded, aria-controls).
  • Add CSS focus styles for visibility.

Screenshots

tab-issue.mp4

How to Reproduce

  1. Navigate to the website (https://conference.asyncapi.com/).
  2. Use the Tab key to focus on the dropdown trigger (e.g., "Venue").
  3. Press Enter or Space to open the dropdown.
  4. Observe that the dropdown does not open.
  5. Attempt to navigate dropdown items with Arrow keys (fails).

🥦 Browser

None

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

@naman9271 naman9271 added the bug Something isn't working label Jan 26, 2025
@naman9271
Copy link
Author

naman9271 commented Jan 26, 2025

hey @ashmit-coder @thulieblack please assign this issue to me
I have fixed this issue in my local environment

@harikrishna-au
Copy link

Hello, @ashmit-coder and @thulieblack, could you please assign me the issue? I’d be glad to fix it right away

@naman9271 naman9271 linked a pull request Jan 28, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants