Skip to content

Commit

Permalink
fix(form): required style of form item was invalid (#2066)
Browse files Browse the repository at this point in the history
Co-authored-by: daitingyuan <[email protected]>
  • Loading branch information
Tinsson and daitingyuan authored Aug 16, 2024
1 parent bcfb71c commit fd4a5ab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/zent/assets/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
flex-shrink: 0;
display: inline-flex;
flex-basis: 120px;

&.zent-form-label-required {
&::before {
@include theme-color(color, error, 2);
content: '*';
display: inline-block;
font-size: 16px;
margin-right: 6px;
}
}
}

&-error {
Expand Down

0 comments on commit fd4a5ab

Please sign in to comment.