From 94f20ccb81cab288375d6c187743dd986849cd28 Mon Sep 17 00:00:00 2001 From: Material Web Team Date: Thu, 22 Sep 2022 13:38:55 -0700 Subject: [PATCH] style(dialog): Define a min-height mixin for dialog. PiperOrigin-RevId: 476185168 --- packages/mdc-dialog/_mixins.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/mdc-dialog/_mixins.scss b/packages/mdc-dialog/_mixins.scss index 78235b81d80..cb750747d33 100644 --- a/packages/mdc-dialog/_mixins.scss +++ b/packages/mdc-dialog/_mixins.scss @@ -702,6 +702,16 @@ } } +@mixin min-height($min-height, $query: feature-targeting.all()) { + $feat-structure: feature-targeting.create-target($query, structure); + + .mdc-dialog__surface { + @include feature-targeting.targets($feat-structure) { + min-height: $min-height; + } + } +} + @mixin max-width-with-breakpoint( $above-breakpoint-max-width, $below-breakpoint-max-width,