From dad9107aabf74792aef71ad4d193c080f7b4a889 Mon Sep 17 00:00:00 2001 From: zdhxiong Date: Sat, 19 Oct 2024 01:16:09 +0800 Subject: [PATCH] text-field: Prevent text from covering label --- .../mdui/src/components/text-field/style.less | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/mdui/src/components/text-field/style.less b/packages/mdui/src/components/text-field/style.less index e469f8c2..8171050e 100644 --- a/packages/mdui/src/components/text-field/style.less +++ b/packages/mdui/src/components/text-field/style.less @@ -334,9 +334,21 @@ } } -:host([variant="filled"]) .label + .input { - .padding-top(22); - .padding-bottom(6); +textarea.input { + padding-top: 0; + .margin-top(14); +} + +:host([variant="filled"]) .label { + + .input { + .padding-top(22); + .padding-bottom(6); + } + + + textarea.input { + padding-top: 0; + .margin-top(22); + } } .supporting {