Skip to content

fix(cdk/stepper): focus management not working with shadow dom encapsulation #23047

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

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Jun 23, 2021

The CDK stepper focus management checks against the document to find the focused element which won't work if the stepper is inside the shadow DOM. These changes use our shadow DOM helper to resolve the element instead.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels Jun 23, 2021
@crisbeto crisbeto requested a review from devversion June 23, 2021 05:39
@crisbeto crisbeto requested a review from mmalerba as a code owner June 23, 2021 05:39
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 23, 2021
@crisbeto crisbeto force-pushed the stepper-shadow-dom-focus branch from 48939ad to c0a224b Compare June 23, 2021 15:11
@crisbeto crisbeto force-pushed the stepper-shadow-dom-focus branch from c0a224b to 256f93b Compare June 23, 2021 16:28
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jun 23, 2021
@crisbeto crisbeto force-pushed the stepper-shadow-dom-focus branch 2 times, most recently from 5418385 to d0da439 Compare June 24, 2021 15:33
…ulation

The CDK stepper focus management checks against the document to find the focused element which won't work if the stepper is inside the shadow DOM. These changes use our shadow DOM helper to resolve the element instead.
@crisbeto crisbeto force-pushed the stepper-shadow-dom-focus branch from d0da439 to 9ce4130 Compare June 24, 2021 19:53
@amysorto amysorto merged commit fe24ce7 into angular:master Jun 28, 2021
amysorto pushed a commit that referenced this pull request Jun 28, 2021
…ulation (#23047)

The CDK stepper focus management checks against the document to find the focused element which won't work if the stepper is inside the shadow DOM. These changes use our shadow DOM helper to resolve the element instead.

(cherry picked from commit fe24ce7)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants