Create a Dropdown Menu for Rates

InstructorLindsey Kopacz

Share this video with your friends

Send Tweet

We are creating an accessible popup menu for a web application. It covers various concepts, including handling keyboard events, creating a new dropdown component for reuse, using arrow keys to navigate through buttons, using the Tab key to close the menu and go to the next item in the tab order, using the Escape key to close the menu and focus on the button that closes it, using the aria-expanded attribute to communicate whether the menu is open or closed, and the difference between the tab index values of 0 and -1.

Think about:

  • Why tabindex -1?
  • Why would you use arrows versus tab key to navigate through the dropdown?
~ a year ago

Hey Lindsey Kopacz, Hope you are doing well, where can I copy the css file (audio-player.css) to follow the class exactly the same.

thanks, Sergio

Lindsey Kopaczinstructor
~ a year ago

Hey Sergio! https://github.com/lkopacz/egghead-react-a11y-audio-player/blob/14-create-dropdown-menu/src/components/audio-player/audio-player.css Here you go!

~ a year ago

Thank you very much, I appreciate your effort! By the way, what a great course, well done.