Button Dropdown example

This repo aims to address some concerns/accessibility issues with the standards Bootstrap button dropdown module.

Link before


Bootstrap button dropdown example:


Link after

Issues with Bootstrap version

  1. Focus should shift from button to the dropdown when the button is triggered. Instead, focus remains on the button and it is announced again
  2. When users TAB past last dropdown item and on to other focusable items, the dropdown menu should close
  3. users cannot use UP ARROW and DOWN ARROW keystrokes to select dropdown items

Ideal process for Keyboard-only users

To get to button:

Button announced:

To trigger the button:

After button triggered:

To escape dropdown

To leave dropdown

To move around items inside dropdown

To select items inside dropdown

When an item selected


Ideal process for Mouse users

To trigger the button:

To escape dropdown

To select

When an item selected