DEV Community

Alex Carpenter
Alex Carpenter

Posted on

3 2

Intro to the inert attribute

A quick introduction to the inert attribute and how you can use it to trap focus within a modal.

WICG inert polyfill: https://github.com/WICG/inert

Here are a few libraries I have built that make use of the wicg-inert polyfill:

Top comments (0)

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay