Skip to content

Commit

Permalink
fix: form label spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
droshev committed Dec 10, 2024
1 parent 3cb7cb2 commit e596519
Show file tree
Hide file tree
Showing 8 changed files with 212 additions and 304 deletions.
23 changes: 23 additions & 0 deletions libs/core/form/form-label/form-label.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,26 @@ $form-label-bottom-spacing: 0.125rem;
}
}
}

// remove after adopting fd-styles version 0.39
.fd-container.fd-form-layout-grid-container.fd-form-group .fd-form-item .fd-form-label--colon,
.fd-container.fd-form-layout-grid-container .fd-form-group .fd-form-item .fd-form-label--colon {
padding-inline-end: 0.25rem;
}
.fd-container.fd-form-layout-grid-container.fd-form-group .fd-form-item .fd-form-label--required,
.fd-container.fd-form-layout-grid-container .fd-form-group .fd-form-item .fd-form-label--required {
padding-inline-end: 0.5rem;
}
.fd-container.fd-form-layout-grid-container.fd-form-group .fd-form-item .fd-form-label--required.fd-form-label--colon,
.fd-container.fd-form-layout-grid-container .fd-form-group .fd-form-item .fd-form-label--required.fd-form-label--colon {
padding-inline-end: 0.75rem;
}
.fd-form-item .fd-form-label--colon {
padding-inline-end: 0.25rem;
}
.fd-form-item .fd-form-label--required {
padding-inline-end: 0.5rem;
}
.fd-form-item .fd-form-label--required.fd-form-label--colon {
padding-inline-end: 0.75rem;
}
26 changes: 0 additions & 26 deletions libs/docs/platform/input/e2e/input-page-contents.ts

This file was deleted.

199 changes: 0 additions & 199 deletions libs/docs/platform/input/e2e/input.e2e-spec.ts

This file was deleted.

45 changes: 0 additions & 45 deletions libs/docs/platform/input/e2e/input.po.ts

This file was deleted.

6 changes: 0 additions & 6 deletions libs/docs/platform/input/e2e/input.ts

This file was deleted.

4 changes: 0 additions & 4 deletions libs/docs/platform/input/e2e/tsconfig.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,34 @@
<form #myForm="ngForm">
<fdp-form-group [formGroup]="formTypesGroupRegister">
<fdp-form-field #ffl1 label="Default Input Field" id="input1" [rank]="1" placeholder="Field placeholder text">
<fdp-form-field
#ffl1
label="Colon Label Field"
id="input1"
[rank]="1"
[colon]="true"
placeholder="Field placeholder text"
>
<fdp-input name="input1" type="text"> </fdp-input>
</fdp-form-field>
<fdp-form-field #ffl1 label="Text Input Field" id="input2" [rank]="1" placeholder="Field placeholder text">
<fdp-form-field
#ffl1
label="Required Field"
id="input2"
[rank]="1"
[colon]="true"
[required]="true"
placeholder="Field placeholder text"
>
<fdp-input name="input2" type="text"> </fdp-input>
</fdp-form-field>
<fdp-form-field #ffl1 label="Number Input Field" id="input3" [rank]="1" placeholder="Field placeholder text">
<fdp-form-field
#ffl1
label="Required Field"
id="input3"
[rank]="1"
[required]="true"
placeholder="Field placeholder text"
>
<fdp-input name="input3" type="number"></fdp-input>
</fdp-form-field>
<fdp-form-field #ffl1 label="Compact Input Field" id="input4" [rank]="1" placeholder="Field placeholder text">
Expand Down
Loading

0 comments on commit e596519

Please sign in to comment.