Skip to content

Commit b213da2

Browse files
palbizuPatricio Albizu
andauthored
fix: form field small fix (#904)
Co-authored-by: Patricio Albizu <albizupatricio@github.com>
1 parent 6a9fc28 commit b213da2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

projects/components/src/form-field/form-field.component.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@import 'mixins';
22

33
.form-field {
4-
padding-top: 8px;
5-
64
&.optional {
75
margin-bottom: 18px;
86
}

projects/components/src/form-field/form-field.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { IconSize } from '../icon/icon-size';
77
changeDetection: ChangeDetectionStrategy.OnPush,
88
template: `
99
<section class="form-field" [ngClass]="{ optional: this.isOptional }">
10-
<div class="info-label">
11-
<ht-label *ngIf="this.label" class="label" [label]="this.label"></ht-label>
10+
<div *ngIf="this.label" class="info-label">
11+
<ht-label class="label" [label]="this.label"></ht-label>
1212
<ht-label *ngIf="this.isOptional" class="optional-label" label="(Optional)"></ht-label>
1313
<ht-icon
1414
*ngIf="this.icon"

0 commit comments

Comments
 (0)