Skip to content

a11y: Keyboard navigation; aria attributes#49

Open
doubleedesign wants to merge 1 commit into
zoltantothcom:masterfrom
doubleedesign:a11y
Open

a11y: Keyboard navigation; aria attributes#49
doubleedesign wants to merge 1 commit into
zoltantothcom:masterfrom
doubleedesign:a11y

Conversation

@doubleedesign

@doubleedesign doubleedesign commented Jul 22, 2022

Copy link
Copy Markdown

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