Skip to content

Commit 304bdf4

Browse files
style: adjust input color and padding
1 parent 09df70a commit 304bdf4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<p-floatlabel [variant]="variant">
2-
<input pInputText id="input_{{ label | lowercase }}" [(ngModel)]="value" [type]="type" [disabled]="disabled" autocomplete="off" />
3-
<label for="input_{{ label | lowercase }}">{{ label }}</label>
2+
<input pInputText [id]="'input_' + (label | lowercase)" [(ngModel)]="value" [type]="type" [disabled]="disabled" autocomplete="off" />
3+
<label [for]="'input_' + (label | lowercase)">{{ label }}</label>
44
</p-floatlabel>

src/app/common/components/input-field/input-field.component.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
p-floatlabel {
2-
width: 500px;
3-
42
input {
53
width: 100%;
6-
padding: 15px;
74
font-size: 16px;
85
background-color: var(--background-color-light);
96
border: var(--grey-border);
107
border-radius: 8px;
118
transition: border-color 0.3s ease-in-out;
9+
color: black;
1210

1311
&:focus,
1412
&:hover,

src/app/common/components/input-field/input-field.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ export class InputFieldComponent {
1515
@Input() label: string = '';
1616
@Input() type: string = 'text';
1717
@Input() disabled: boolean = false;
18-
@Input() variant: 'in' | 'over' | 'on' = 'in';
18+
@Input() variant: 'in' | 'on' = 'in';
1919
value: string = '';
2020
}

0 commit comments

Comments
 (0)