Skip to content

MargaretKrutikova/elm-accessible-dropdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A keyboard accessible dropdown in Elm

An example of a dropdown written in Elm, supported features:

  • full keyboard accessibility
    • focusable - supports tabbing into,
    • open on Enter or Space key,
    • focus options when navigating with arrow keys ⬆️ and ⬇️,
    • select currently focused option with Enter/Space,
    • close with Escape or on focus out,
  • close on click outside,
  • scroll into the selected option on open,
  • native Elm with no JS ports 😎

Demo

Demo of the fabulous dropdown:


This project is bootstrapped with Create Elm App.

Run the examples

elm-app start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

About

Example implementation of a dropdown

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published