Skip to content

Commit

Permalink
fixed asktrix placement on new line
Browse files Browse the repository at this point in the history
  • Loading branch information
raygig committed Feb 6, 2025
1 parent 4233863 commit 66c1bc7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@firestitch/form",
"title": "Form",
"version": "18.0.8",
"version": "18.0.9",
"repository": {
"type": "git",
"url": "https://github.com/Firestitch/ngx-form"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</ng-template>
</fs-autocomplete-chips>
<div
class="fs-row"
class="fs-row.gap-xs"
*ngIf="render">
<mat-form-field>
<mat-label>
Expand All @@ -54,6 +54,7 @@
<input
#passwordInput
name="password"
[required]="required && validations"
[(ngModel)]="password"
matInput>
</mat-form-field>
Expand All @@ -64,6 +65,7 @@
<input
[(ngModel)]="passwordConfirm"
name="confirm"
[required]="required && validations"
[fsFormCompare]="passwordInput"
[fsFormNumeric]="validations"
matInput>
Expand Down Expand Up @@ -324,4 +326,4 @@
</button>
</div>
</div>
</form>
</form>
11 changes: 8 additions & 3 deletions src/app/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@
but should not do that for simple matInputs, cuz since Material 18 its already added
by mat-form-field, this is why first selector is such complicated
*/
mat-label:not(:has(+ .mat-mdc-form-field-required-marker)), .fs-form-label {
mat-label:not(:has(+ .mat-mdc-form-field-required-marker)),
.fs-form-label {
&.fs-form-label-required:after {
content: " *";
white-space: pre-wrap;
content: "*";
margin-left: 1px;
}
}

mat-label {
display: inline-flex;
}

.fs-form-wrapper.ng-invalid.ng-dirty .fs-form-label,
.ng-invalid.ng-dirty:not(form) .fs-form-label {
Expand Down

0 comments on commit 66c1bc7

Please sign in to comment.