Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jakelazaroff/roving-tabindex

A simple HTML web component that implements the roving tabindex pattern for building accessible menus and grids. Use it with any framework or just plain HTML!
https://github.com/jakelazaroff/roving-tabindex

Last synced: about 2 months ago
JSON representation

A simple HTML web component that implements the roving tabindex pattern for building accessible menus and grids. Use it with any framework or just plain HTML!

Awesome Lists containing this project

README

        

# Roving tabindex

A simple [HTML web component](https://adactio.com/journal/20618) that implements the [roving tabindex pattern](https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_roving_tabindex) for building accessible menus and grids.

Wrap it around some markup and give it a selector to determine which elements become navigable!

```html


  • One

  • Two

  • Three

```

# Installation

`` isn't on NPM; download `roving-tabindex-0.2.0.js` and add it into your codebase.
The file exports a class with a static `register` method as the default export:

```js
import RovingTabindex from "./roving-tabindex-0.2.0.js";
RovingTabindex.register();
```