Skip to content

Accessibility improvements for Select component

Pre-release
Pre-release
Compare
Choose a tag to compare
@wfro wfro released this 05 Feb 23:46
· 111 commits to master since this release
ae9a3b3

#309 Add button role to select trigger. This results in a few a11y improvements:

  • Screen readers will better announce the menu button as actionable
  • Screen reader focus is correctly returned back to the menu button -- Select was
    already returning focus to the menu button programatically, but
    because the menu button only had tabindex it wasn't seen by screen
    readers as an interactive element. Screen reader focus would be stuck
    on the selected menu item instead of being returned to the button.