sarbbottam / self-focused

Helps make a single page application more friendly to screen readers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

self-focused

When UI transitions happen in a SPA (or in any dynamic web application), there is visual feedback; however, for users of screen reading software, there is no spoken feedback by default. Traditionally, screen reading software automatically reads out the content of a web page during page load or page refresh. In single page applications, the UI transitions happen by rewriting the current page, rather than loading entirely new pages from a server; this makes it difficult for screen reading software users to be aware of UI changes (e.g., clicking on the navigation bar to load a new route).

If the corresponding HTML node of the dynamic content can be focused programmatically, screen reading software will start speaking the textual content of that node. Focusing the corresponding HTML node of the dynamic content can be considered guided focus management. Not only will it facilitate the announcement of the textual content of the focused HTML node, but it will also serve as a guided context switch. Any subsequent “tab” key press will focus the next focusable element within/after this context. However, keeping track of the HTML nodes to be focused can be tedious, repetitive, and error-prone since there could be hundreds of nodes that need to be programmatically focused in a SPA.

For ember and react applications, this component solves the problem.

Usage

Contributing

Please refer CONTRIBUTING.md

License

This project is licensed under the BSD-2-Clause License.

About

Helps make a single page application more friendly to screen readers.

License:BSD 2-Clause "Simplified" License


Languages

Language:JavaScript 84.6%Language:HTML 15.4%