Skip to content

Commit

Permalink
fix(form-field): form-field render hint with empty tag (#UIM-542)
Browse files Browse the repository at this point in the history
  • Loading branch information
lskramarov committed Dec 1, 2020
1 parent 1b30b97 commit 0eb8a33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mosaic/form-field/form-field.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<ng-content *ngIf="canShowStepper" select="mc-stepper"></ng-content>
</div>

<div class="mc-form-field__hint" *ngIf="hasHint">
<div class="mc-form-field__hint">
<ng-content select="mc-hint"></ng-content>
</div>
6 changes: 5 additions & 1 deletion packages/mosaic/form-field/form-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ $mc-form-field-border-size: 1px;
}
}

.mc-form-field__hint {
.mc-hint {
display: block;
}

.mc-form-field__hint > .mc-hint {
margin-top: 4px;
}

Expand Down

0 comments on commit 0eb8a33

Please sign in to comment.