Skip to content

Conversation

@crisbeto
Copy link
Member

Currently the expansion panel prevents focus from entering it using visibility: hidden, but that only works when it's closed. This means that if the user tabs into it while it's animating, they may scroll the content make the component look broken.

These changes resolve the issue by setting inert on the panel content while it's animating. Also cleans up an old workaround for IE.

Fixes #27430.
Fixes #28644.

…it's animating

Currently the expansion panel prevents focus from entering it using `visibility: hidden`, but that only works when it's closed. This means that if the user tabs into it while it's animating, they may scroll the content make the component look broken.

These changes resolve the issue by setting `inert` on the panel content while it's animating. Also cleans up an old workaround for IE.

Fixes angular#27430.
Fixes angular#28644.
@crisbeto crisbeto force-pushed the 27430/expansion-focus branch from bed6ece to c631c97 Compare February 26, 2024 11:55
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Feb 26, 2024
@crisbeto crisbeto self-assigned this Feb 26, 2024
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Feb 26, 2024
@crisbeto crisbeto merged commit 24eaa2e into angular:main Feb 26, 2024
crisbeto added a commit that referenced this pull request Feb 26, 2024
…it's animating (#28646)

Currently the expansion panel prevents focus from entering it using `visibility: hidden`, but that only works when it's closed. This means that if the user tabs into it while it's animating, they may scroll the content make the component look broken.

These changes resolve the issue by setting `inert` on the panel content while it's animating. Also cleans up an old workaround for IE.

Fixes #27430.
Fixes #28644.

(cherry picked from commit 24eaa2e)
@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 Mar 28, 2024
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 target: patch This PR is targeted for the next patch release

Projects

None yet

2 participants