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

fix(cdk/dialog): use inert to block content outside of dialog #25666

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

crisbeto
Copy link
Member

Currently we're setting aria-hidden on all elements outside of a dialog in order to prevent assistive technology from interacting with it. These changes switch to using the inert attribute when supported which resolves some long-standing issues like tabbing directly into the dialog from the address bar.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: major This PR is targeted for the next major release labels Sep 20, 2022
@crisbeto crisbeto added dev-app preview When applied, previews of the dev-app are deployed to Firebase Accessibility This issue is related to accessibility (a11y) and removed dev-app preview When applied, previews of the dev-app are deployed to Firebase labels Sep 20, 2022
@github-actions
Copy link

github-actions bot commented Sep 20, 2022

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Sep 21, 2022
@crisbeto crisbeto removed the dev-app preview When applied, previews of the dev-app are deployed to Firebase label Sep 22, 2022
@crisbeto
Copy link
Member Author

I spent some time presubmitting this and I think it'll be tricky to land, because the automated a11y checking tools don't account for inert yet. Previously the aria-hidden was also hiding some a11y issues, but with inert those issues are being reported.

Currently we're setting `aria-hidden` on all elements outside of a dialog in order to prevent assistive technology from interacting with it. These changes switch to using the `inert` attribute when supported which resolves some long-standing issues like tabbing directly into the dialog from the address bar.
@kbrilla
Copy link

kbrilla commented Nov 28, 2023

any luck the tool is now accounting now for inert?

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) action: merge The PR is ready for merge by the caretaker P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants