Skip to content

Commit

Permalink
Form: required FormItem displays asterisk when label is auto (ElemeFE…
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyoung authored Apr 17, 2019
1 parent 01a4118 commit 993e9a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/theme-chalk/src/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@

@include when(required) {
@include pseudo('not(.is-no-asterisk)') {
& > .el-form-item__label:before {
& > .el-form-item__label:before,
& .el-form-item__label-wrap > .el-form-item__label:before {
content: '*';
color: $--color-danger;
margin-right: 4px;
Expand Down

0 comments on commit 993e9a1

Please sign in to comment.