Skip to content

Commit

Permalink
support small height text input
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-willems committed Sep 12, 2024
1 parent 34c70ba commit b5d2b26
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/demo/src/app/demo/demo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<div style="flex: 1 1 0px; margin-top: 5rem; margin-bottom: 10rem; margin-left: 20rem; max-width: 16rem;">
<klp-form-element caption="Name Je weet erfjwefwewkfjewerfjwefjewerfjwefwewkfjewerfjwefjew" spaceDistribution="34-66" direction="vertical">
<klp-form-text-input formControlName="name" [clearable]="true">
<klp-form-text-input formControlName="name" [clearable]="true" size="small">
</klp-form-text-input>
<klp-form-error error="async"></klp-form-error>
</klp-form-element>
Expand Down
2 changes: 1 addition & 1 deletion projects/klippa/ngx-enhancy-forms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klippa/ngx-enhancy-forms",
"version": "18.22.2",
"version": "18.22.3",
"publishConfig": {
"access": "public"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="componentContainer">
<div class="componentContainer" [ngClass]="{smallSized: size === 'small'}">
<ng-container *ngIf="icon?.length > 0">
<i class="ti-search" *ngIf="icon === 'search'"></i>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

.componentContainer {
position: relative;
&.smallSized input {
height: 32px;
}
}

i {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class TextInputComponent extends ValueAccessorBase<string> {
@Input() hasBorderLeft = true;
@Input() hasBorderRight = true;
@Input() passwordPeekIcon: TemplateRef<any>;
@Input() size: 'small' | 'medium' = 'medium';
@Output() onBlur = new EventEmitter<void>();

public togglePeakPassword(): void {
Expand Down

0 comments on commit b5d2b26

Please sign in to comment.