From 429fb528004219fde45d0f3f598764a76b3e292c Mon Sep 17 00:00:00 2001 From: Karan Mistry Date: Wed, 9 Apr 2025 16:38:32 +0530 Subject: [PATCH] fix(material/form-field): add min-height to mdc-text-field for textarea consistency When textarea is resized to small height it overlaps the content, this fix set's the min-height Fixes #30089 --- src/material/form-field/_mdc-text-field-structure.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/material/form-field/_mdc-text-field-structure.scss b/src/material/form-field/_mdc-text-field-structure.scss index d053a08fb59b..de68cd9fa19c 100644 --- a/src/material/form-field/_mdc-text-field-structure.scss +++ b/src/material/form-field/_mdc-text-field-structure.scss @@ -43,6 +43,7 @@ $token-slots: m2-form-field.get-token-slots(); // TODO(crisbeto): this height gets overwritten eventually, but there are some internal // tests that depend on this being here in weird ways so we're keeping it around for now. height: 28px; + min-height: 28px; // Note that while this style and the `-ms-clear` are identical, we can't combine // them because if one of them isn't supported, it'll invalidate the whole rule.