8.2.0 • Published 3 months ago

tabster v8.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Tabster

Tabindex on steroids.

A set of tools and concepts for making a dynamic web application properly accessible and keyboard-navigable.

https://tabster.io.

About

The way a browser and the screen readers handle a web application is evolved from the static web era. A process of making a modern dynamic web application accessible presents a number of challenges like, for example, the proper focus management between modal dialogs, popups, lists and other parts of the dynamically changing application. This project is an attempt to solve some of those challenges.

Dependencies

This project is framework-agnostic. It operates on the DOM level and has no external runtime dependencies. Though it is possible that your framework or application might have own logic to achieve similar result, in that case runtime conflicts and behavioural inconsistencies are definitely possible. At the same time, it does not do things automatically and parts of it should be explicitly enabled.

Parts

Focusable

An API for traversing focusable elements.

Deloser

When you remove, for example, a button which has focus from the DOM, the focus gets lost which is confusing for the screen reader and keyboard navigation users. Deloser is a concept which helps to automatically restore the focus when it gets lost without manually calling .focus() method from the application code.

FocusedElementState

An event and a couple of methods to track and change currently focused element.

KeyboardNavigationState

An event and a method to determine if the user is using keyboard to navigate through the application.

Groupper

Keyboard navigation for the lists should allow to avoid going through every list item when the users use Tab key (only one item of the list should be tabbable), also the arrow keys and Home/End/PageUp/PageDown keys should be handled to move between the list items. This is an API to easily make properly behaving lists.

Modalizer

When you show, for example, a modal dialog, the rest of the application might need to be excluded from the keyboard and screen reader navigation flow. Modalizer is a concept to conveniently make that possible.

Outline

When people navigate with the keyboard, the currently focused element should be properly highlighted. There is a CSS property called outline, which is unfortunately insufficient: the outline of an element gets cropped when a parent element has overflow: hidden, there is no way to limit the outline visibility to only the cases when the user is navigating with keyboard. So, we have a custom outline component which is supposed to solve both of the problems.

Contributing

Contributions are welcome (see the CONTRIBUTING file), though please keep in mind the work-in-progress proof-of-concept state. Might make sense to just observe/discuss until the thing gets stable and well-documented.

The repo now has an examples project powered by Storybook. Just run npm start

License

This project is licensed under the MIT License, see the LICENSE file for details.

8.1.0

3 months ago

8.2.0

3 months ago

7.3.0

6 months ago

8.1.0-canary.0

4 months ago

7.1.4

7 months ago

7.2.0

7 months ago

8.0.0-canary.0

7 months ago

7.4.0-canary.1

4 months ago

8.0.1

6 months ago

7.4.0-canary.0

5 months ago

8.0.0

6 months ago

7.4.0-canary.3

4 months ago

7.4.0-canary.2

4 months ago

7.1.3

7 months ago

7.1.2

8 months ago

7.1.1

8 months ago

7.1.0

9 months ago

7.0.1

10 months ago

7.0.0

10 months ago

7.0.0-canary.3

10 months ago

7.0.0-canary.0

10 months ago

7.0.0-canary.1

10 months ago

7.0.0-canary.2

10 months ago

6.1.0

10 months ago

6.0.1

11 months ago

6.0.0-canary.3

11 months ago

6.0.0

11 months ago

5.3.0

11 months ago

5.2.1

11 months ago

6.0.0-canary.1

12 months ago

6.0.0-canary.2

12 months ago

6.0.0-canary.0

12 months ago

5.2.0

1 year ago

5.0.2

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago

5.1.0

1 year ago

4.9.0

1 year ago

4.8.0

1 year ago

5.0.0-canary.1

1 year ago

5.0.0-canary.0

1 year ago

5.0.0-canary.5

1 year ago

5.0.0-canary.4

1 year ago

5.0.0-canary.3

1 year ago

4.4.3

2 years ago

5.0.0-canary.2

1 year ago

5.0.0-canary.6

1 year ago

4.8.0-canary.0

1 year ago

4.7.0

1 year ago

4.7.1-canary.0

1 year ago

4.7.2

1 year ago

4.7.1

1 year ago

4.7.3

1 year ago

4.6.0

2 years ago

4.5.0

2 years ago

4.5.1

2 years ago

4.1.3-canary.0

2 years ago

3.2.2-canary.0

2 years ago

4.0.1-canary.2

2 years ago

4.0.1-canary.3

2 years ago

4.4.1

2 years ago

4.4.0

2 years ago

4.4.2

2 years ago

4.0.1

2 years ago

4.0.1-canary.0

2 years ago

4.0.1-canary.1

2 years ago

3.2.1-canary.0

2 years ago

3.1.0

2 years ago

4.1.1-canary.0

2 years ago

3.2.0-canary.0

2 years ago

4.3.0

2 years ago

4.1.2-canary.0

2 years ago

4.2.0

2 years ago

3.1.0-canary.0

2 years ago

4.2.1-canary.0

2 years ago

4.3.0-canary.0

2 years ago

4.3.0-canary.1

2 years ago

4.0.0-canary.0

2 years ago

4.1.0

2 years ago

4.1.2

2 years ago

4.1.1

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

1.3.4

3 years ago

1.3.0-canary.0

3 years ago

1.3.0-canary.3

3 years ago

1.3.0-canary.1

3 years ago

1.3.0-canary.2

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.1.0-alpha.1

3 years ago

1.1.0-alpha.2

3 years ago

1.1.0-alpha.0

3 years ago

1.1.0-alpha.3

3 years ago

1.1.0-alpha.4

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-alpha.8

3 years ago

1.0.0-alpha.7

3 years ago

1.0.0-alpha.6

3 years ago

1.0.0-alpha.5

3 years ago

1.0.0-alpha.4

3 years ago

1.0.0-alpha.3

3 years ago

1.0.0-alpha.2

3 years ago

1.0.0-alpha.1

3 years ago

1.0.0-alpha.0

3 years ago

0.7.4

3 years ago

0.7.3

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.2

4 years ago

0.7.0-alpha.1

4 years ago

0.7.0-alpha.0

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.0.0

4 years ago