mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3266] fixed style for amount widget (#3531)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<div class="adf-amount-widget__container adf-amount-widget {{field.className}}" [class.adf-invalid]="!field.isValid" [class.adf-readonly]="field.readOnly">
|
<div class="adf-amount-widget__container adf-amount-widget {{field.className}}" [class.adf-invalid]="!field.isValid" [class.adf-readonly]="field.readOnly">
|
||||||
<mat-form-field floatPlaceholder="never" class="adf-amount-widget__input">
|
<mat-form-field class="adf-amount-widget__input">
|
||||||
<label class="adf-label" [attr.for]="field.id">{{field.name}}<span *ngIf="isRequired()">*</span></label>
|
<label class="adf-label" [attr.for]="field.id">{{field.name}}<span *ngIf="isRequired()">*</span></label>
|
||||||
<span matPrefix class="adf-amount-widget__prefix-spacing"> {{currency }}</span>
|
<span matPrefix class="adf-amount-widget__prefix-spacing"> {{currency }}</span>
|
||||||
<input matInput
|
<input matInput
|
||||||
@@ -7,13 +7,12 @@
|
|||||||
type="text"
|
type="text"
|
||||||
[id]="field.id"
|
[id]="field.id"
|
||||||
[required]="isRequired()"
|
[required]="isRequired()"
|
||||||
|
[placeholder]="field.placeholder"
|
||||||
[value]="field.value"
|
[value]="field.value"
|
||||||
[(ngModel)]="field.value"
|
[(ngModel)]="field.value"
|
||||||
(ngModelChange)="onFieldChanged(field)"
|
(ngModelChange)="onFieldChanged(field)"
|
||||||
[disabled]="field.readOnly"
|
[disabled]="field.readOnly">
|
||||||
placeholder="{{field.placeholder}}">
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<error-widget [error]="field.validationSummary" ></error-widget>
|
<error-widget [error]="field.validationSummary" ></error-widget>
|
||||||
<error-widget *ngIf="isInvalidFieldRequired()" required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget>
|
<error-widget *ngIf="isInvalidFieldRequired()" required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@@ -5,20 +5,27 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
vertical-align: baseline !important;
|
vertical-align: baseline !important;
|
||||||
|
|
||||||
.mat-input-element {
|
|
||||||
margin-left: 11px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mat-input-prefix {
|
|
||||||
position: absolute;
|
|
||||||
margin-top: 58px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mat-input-placeholder {
|
.mat-input-placeholder {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mat-form-field-flex{
|
||||||
|
position: relative;
|
||||||
|
padding-top: 18.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field-infix{
|
||||||
|
position: static;
|
||||||
|
padding-top: 19px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-label{
|
||||||
|
position: absolute;
|
||||||
|
top: 18.5px;
|
||||||
|
left:0;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-amount-widget__container {
|
&-amount-widget__container {
|
||||||
|
Reference in New Issue
Block a user