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/a11y): Allow the dialog to recapture focus after active element removal #29032

Closed
wants to merge 1 commit into from

Conversation

mmalerba
Copy link
Contributor

No description provided.

@mmalerba mmalerba added Accessibility This issue is related to accessibility (a11y) area: cdk/a11y labels May 10, 2024
@mmalerba mmalerba marked this pull request as draft May 10, 2024 23:07
@mmalerba mmalerba changed the title fix(cdk/a11y): Allow focus trap to recapture focus after active element removal fix(cdk/a11y): Allow the dialog to recapture focus after active element removal May 11, 2024
…ment removal

I initially implemented this functionality in the focus-trap, though I'm
not sure we necissarily want it in all focus trapping scenarios. We may
want to add a similar configurable `autofocus` capability that the
dialog has to focus-trap. For now I'm applying the fix to dialog and
we'll consider adding it to the focus-trap more generally as a followup
FR at some point in the future.
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant