From e4032821a83c36582ce86a72efcec4149f818333 Mon Sep 17 00:00:00 2001 From: msidolphin Date: Fri, 3 Sep 2021 16:46:19 +0800 Subject: [PATCH] fix(theme-chalk): [el-form] no display red asterisk when width is auto (#3222) fix #3221 --- packages/theme-chalk/src/form.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/theme-chalk/src/form.scss b/packages/theme-chalk/src/form.scss index aae9f1fe53..8b1fb5b136 100644 --- a/packages/theme-chalk/src/form.scss +++ b/packages/theme-chalk/src/form.scss @@ -133,7 +133,9 @@ @include when(required) { @include pseudo('not(.is-no-asterisk)') { - & > .#{$namespace}-form-item__label:before { + & > .#{$namespace}-form-item__label:before, + & > .#{$namespace}-form-item__label-wrap > .#{$namespace}-form-item__label:before + { content: '*'; color: var(--el-color-danger); margin-right: 4px;