Git Product home page Git Product logo

a11y-menu's Introduction

A11y Menu

A keyboard accessible navigational menu script.

Transforms your inaccessible website navigational menu into a keyboard accessible one:

  • Toggles a sub menu(*) when a menu item receives focus using TAB key,
  • Adds a sub menu toggle button,
  • Touching a menu item link once toggles a sub menu(*),
  • Closes all sub menus(*) when ESC key pressed.

(*) Well, this should be done with your CSS styles. All the script is actually doing is toggling a has-expanded-sub-menu class (configurable) on menu items and setting & toggling proper ARIA attributes where needed.

Which file to use?

In your projects, load the a11y-menu.dist.min.js file. It is a distribution ready compiled and minified version of the development a11y-menu.js file.

Documentation

Please check out the project wiki pages for instructions on how to use the script.

Browser compatibility

All modern web browsers, back to Edge and IE11.

Included polyfills

The script includes a polyfill for NodeList.forEach() and Element.matches().

License

GPL-3.0-or-later

Copyright

© 2019 WebMan Design, Oliver Juhas, https://www.webmandesign.eu

a11y-menu's People

Contributors

webmandesign avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.