Open
Description
The new HTML inert
attribute is a native solution to the very manual focus trapping we employ today. We should explore whether we can drop the entire focus trap subpackage in favor of people directly using inert
. It will be some time until browsers fully support this, but it's on track for all of Chromium/Firefox/Safari.
See
https://developer.chrome.com/blog/inert/
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
https://caniuse.com/mdn-api_htmlelement_inert