-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [ADF-5223] Fix Amount widget styling * Fix unit test * Fix e2e test * Fix e2e test
- Loading branch information
1 parent
a7510b9
commit 91b7458
Showing
4 changed files
with
27 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 22 additions & 18 deletions
40
lib/core/form/components/widgets/amount/amount.widget.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
<div class="adf-amount-widget__container adf-amount-widget {{field.className}}" [class.adf-invalid]="!field.isValid" [class.adf-readonly]="field.readOnly"> | ||
<mat-form-field class="adf-amount-widget__input" floatLabel="never"> | ||
<label class="adf-label" [attr.for]="field.id">{{field.name | translate }}<span *ngIf="isRequired()">*</span></label> | ||
<span matPrefix class="adf-amount-widget__prefix-spacing">{{ currency }}</span> | ||
<div class="adf-amount-widget__container adf-amount-widget {{field.className}}" | ||
[class.adf-invalid]="!field.isValid" | ||
[class.adf-readonly]="field.readOnly"> | ||
<label class="adf-label" | ||
[attr.for]="field.id">{{field.name | translate }}<span *ngIf="isRequired()">*</span></label> | ||
<mat-form-field class="adf-amount-widget__input"> | ||
<span matPrefix class="adf-amount-widget__prefix-spacing">{{ currency }} </span> | ||
<input matInput | ||
[matTooltip]="field.tooltip" | ||
matTooltipPosition="above" | ||
matTooltipShowDelay="1000" | ||
class="adf-input" | ||
type="text" | ||
[id]="field.id" | ||
[required]="isRequired()" | ||
[placeholder]="placeholder" | ||
[value]="field.value" | ||
[(ngModel)]="field.value" | ||
(ngModelChange)="onFieldChanged(field)" | ||
[disabled]="field.readOnly"> | ||
[matTooltip]="field.tooltip" | ||
matTooltipPosition="above" | ||
matTooltipShowDelay="1000" | ||
class="adf-input" | ||
type="text" | ||
[id]="field.id" | ||
[required]="isRequired()" | ||
[placeholder]="placeholder" | ||
[value]="field.value" | ||
[(ngModel)]="field.value" | ||
(ngModelChange)="onFieldChanged(field)" | ||
[disabled]="field.readOnly"> | ||
</mat-form-field> | ||
<error-widget [error]="field.validationSummary" ></error-widget> | ||
<error-widget *ngIf="isInvalidFieldRequired()" required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget> | ||
<error-widget [error]="field.validationSummary"></error-widget> | ||
<error-widget *ngIf="isInvalidFieldRequired()" | ||
required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters