Skip to content

Conversation

@doubleedesign
Copy link

@doubleedesign doubleedesign commented Jul 22, 2022

Accessibility enhancements:

  • Add tabindex to the list items to make them navigable with a keyboard
  • Trigger the onClick function when the enter/return key is pressed
  • Add aria-expanded and aria-hidden attributes to the button and list respectively; toggle their values when the list opens/closes

@doubleedesign doubleedesign changed the title Make dropdown work with keyboard navigation a11y: Keyboard navigation; aria attributes Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant