Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore replacing cdk focus trap with native HTML inert #24868

Open
jelbourn opened this issue May 3, 2022 · 0 comments
Open

Explore replacing cdk focus trap with native HTML inert #24868

jelbourn opened this issue May 3, 2022 · 0 comments
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

Comments

@jelbourn
Copy link
Member

jelbourn commented May 3, 2022

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

@jelbourn jelbourn added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent Accessibility This issue is related to accessibility (a11y) refactoring This issue is related to a refactoring area: cdk/a11y labels May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant