Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
refactor(Input): make hint optional
Browse files Browse the repository at this point in the history
  • Loading branch information
valentingavran committed Jul 18, 2022
1 parent 8c62225 commit 458775b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions libs/anglify/src/modules/input/input.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
</span>
<ng-template #hintTemplate>
<span
*ngIf="hint"
#hintElement
[anglifyTooltip]="hint"
[anglifyToolTipConfig]="{ mountingPoint: inputDetails, disabled: !hintOverflow }"
Expand Down
2 changes: 1 addition & 1 deletion libs/anglify/src/modules/input/input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class InputComponent implements OnInit, AfterViewInit {
return this.error$.value;
}

@Input() public hint = '';
@Input() public hint?: string;
@Input() public inputId?: string;
@Input() public length?: number;
@Input() public maxLength?: number;
Expand Down
2 changes: 1 addition & 1 deletion libs/anglify/src/modules/text-area/text-area.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class TextAreaComponent implements AfterViewInit {

@Input() public label?: string;
@Input() public appearance: InputAppearance = this.settings.appearance;
@Input() public hint = '';
@Input() public hint?: string;
@Input() public persistentHint = this.settings.persistentHint;
@Input() public alwaysFloatingLabel = this.settings.alwaysFloatingLabel;
@Input() public hideDetails = this.settings.hideDetails;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class TextFieldComponent implements AfterViewInit {

@Input() public label?: string;
@Input() public appearance: InputAppearance = this.settings.appearance;
@Input() public hint = '';
@Input() public hint?: string;
@Input() public persistentHint = this.settings.persistentHint;
@Input() public alwaysFloatingLabel = this.settings.alwaysFloatingLabel;
@Input() public hideDetails = this.settings.hideDetails;
Expand Down

0 comments on commit 458775b

Please sign in to comment.