From 979ea938853e161c2574ac22d4dbc66d6e6dc53b Mon Sep 17 00:00:00 2001 From: Schabse Laks Date: Tue, 12 Mar 2024 12:50:32 -0700 Subject: [PATCH] Dialogs: Add a chaining class that suppresses scrim animations. PiperOrigin-RevId: 615140498 --- packages/mdc-dialog/_mixins.scss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/mdc-dialog/_mixins.scss b/packages/mdc-dialog/_mixins.scss index 389b0c0cd4c..eb123e31105 100644 --- a/packages/mdc-dialog/_mixins.scss +++ b/packages/mdc-dialog/_mixins.scss @@ -395,7 +395,8 @@ .mdc-dialog__container { @include feature-targeting.targets($feat-animation) { - transition: opacity 75ms linear, + transition: + opacity 75ms linear, animation-functions.enter(transform, 150ms); } } @@ -423,6 +424,12 @@ } } + // Override the above transitions when chaining dialogs. + .mdc-dialog--chaining .mdc-dialog__scrim { + transition: none; + opacity: 1; + } + .mdc-dialog--open { .mdc-dialog__scrim { @include feature-targeting.targets($feat-structure) {