Skip to content

Commit

Permalink
Merge pull request #16584 from sbusch/fix-form-item-with-help-negativ…
Browse files Browse the repository at this point in the history
…e-margin

Prevent negative margin-bottom for form items with help (e.g. validation errors)
  • Loading branch information
afc163 committed May 14, 2019
2 parents 5313777 + 8c9b6ec commit aa70d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/form/style/index.less
Expand Up @@ -113,7 +113,7 @@ input[type='checkbox'] {
}

&-with-help {
margin-bottom: @form-item-margin-bottom - @form-explain-height - @form-help-margin-top;
margin-bottom: max(0, @form-item-margin-bottom - @form-explain-height - @form-help-margin-top);
}

&-label {
Expand Down

0 comments on commit aa70d14

Please sign in to comment.