Skip to content

Commit 9584d95

Browse files
support small height text input
1 parent f69cba7 commit 9584d95

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

projects/demo/src/app/demo/demo.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<div style="flex: 1 1 0px; margin-top: 5rem; margin-bottom: 10rem; margin-left: 20rem; max-width: 16rem;">
88
<klp-form-element caption="Name Je weet erfjwefwewkfjewerfjwefjewerfjwefwewkfjewerfjwefjew" spaceDistribution="34-66" direction="vertical">
9-
<klp-form-text-input formControlName="name" [clearable]="true">
9+
<klp-form-text-input formControlName="name" [clearable]="true" size="small">
1010
</klp-form-text-input>
1111
<klp-form-error error="async"></klp-form-error>
1212
</klp-form-element>

projects/klippa/ngx-enhancy-forms/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@klippa/ngx-enhancy-forms",
3-
"version": "14.22.17",
3+
"version": "14.22.18",
44
"publishConfig": {
55
"access": "public"
66
},

projects/klippa/ngx-enhancy-forms/src/lib/elements/text-input/text-input.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="componentContainer">
1+
<div class="componentContainer" [ngClass]="{smallSized: size === 'small'}">
22
<ng-container *ngIf="icon?.length > 0">
33
<i class="ti-search" *ngIf="icon === 'search'"></i>
44
</ng-container>

projects/klippa/ngx-enhancy-forms/src/lib/elements/text-input/text-input.component.scss

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
.componentContainer {
1313
position: relative;
14+
&.smallSized input {
15+
height: 32px;
16+
}
1417
}
1518

1619
i {

projects/klippa/ngx-enhancy-forms/src/lib/elements/text-input/text-input.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export class TextInputComponent extends ValueAccessorBase<string> {
1818
@Input() hasBorderLeft = true;
1919
@Input() hasBorderRight = true;
2020
@Input() passwordPeekIcon: TemplateRef<any>;
21+
@Input() size: 'small' | 'medium' = 'medium';
2122
@Output() onBlur = new EventEmitter<void>();
2223

2324
public togglePeakPassword(): void {

0 commit comments

Comments
 (0)