The Inert Polyfill
Author: Rob Dodson
Keyboard focus is crucially important for both motor impaired users, and visually impaired users relying on a screen reader.
One common UI mistake is to leave elements in the DOM that are offscreen but still contain focusable children. A responsive side nav is a class example. So in today’s episode we’ll look at how we can solve this common gotcha with a new proposed HTML attribute: inert!
Using the inert attribute you can take an entire tree of elements out of the tab order and the accessibility tree. It’s an awesome feature that’s totally missing from the web platform today, but we’re working to change that!
In the upcoming episodes we’ll take a step back and explore the underlying concepts around focus and how it works in the platform, but if you’re eager to play around with inert today you can find the polyfill up on GitHub.
Originally posted from http://youtu.be/fGLp_gfMMGU