Skip to content

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

Merged
amysorto merged 1 commit into
angular:masterfrom
crisbeto:stepper-shadow-dom-focus
Jun 28, 2021
Merged

amysorto merged 1 commit into
angular:masterfrom
crisbeto:stepper-shadow-dom-focus

Conversation

@crisbeto

@crisbeto crisbeto commented Jun 23, 2021

Copy link
Copy Markdown
Member

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
Comment thread src/material/stepper/stepper.spec.ts Outdated
@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
Copy Markdown

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