Explore replacing cdk focus trap with native HTML inert #24868
Labels
Accessibility
This issue is related to accessibility (a11y)
area: cdk/a11y
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
refactoring
This issue is related to a refactoring
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 usinginert
. 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
The text was updated successfully, but these errors were encountered: