Skip to content

fix(material/sidenav): scope transitions to the nearest drawer container - #33911

Open
minwookshin wants to merge 1 commit into
angular:mainfrom
minwookshin:codex/sidenav-initial-animation
Open

minwookshin wants to merge 1 commit into
angular:mainfrom
minwookshin:codex/sidenav-initial-animation

Conversation

@minwookshin

Copy link
Copy Markdown

Fixes #33080

An initialized outer drawer container can enable transitions on a newly rendered inner drawer through the descendant selectors. Scope the transition duration to the nearest container so nested drawers skip their initial transition and animate after their own container enables transitions.

Added a regression covering the nested drawer, content, and backdrop before and after initialization. It fails before the fix; the sidenav suites now pass in Chromium and Firefox, including TypeScript compilation. Scoped stylelint, TSLint, and the repository's staged formatter passed.

Keep a nested drawer from inheriting an outer container animation during its initial render.
Preserve transitions once its own container enables them.

Fixes angular#33080
@google-cla

google-cla Bot commented Oct 1, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

}

.mat-drawer-container {
// Scope transition timing to the nearest container so an outer container cannot animate

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AFAIK we don't officially support nesting drawers/drawer containers.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(sidenav): Sidenav opening animation triggers on page navigation

2 participants