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">
|
||||
<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>
|
||||
<span matPrefix class="adf-amount-widget__prefix-spacing"> {{currency }}</span>
|
||||
<input matInput
|
||||
@@ -7,13 +7,12 @@
|
||||
type="text"
|
||||
[id]="field.id"
|
||||
[required]="isRequired()"
|
||||
[placeholder]="field.placeholder"
|
||||
[value]="field.value"
|
||||
[(ngModel)]="field.value"
|
||||
(ngModelChange)="onFieldChanged(field)"
|
||||
[disabled]="field.readOnly"
|
||||
placeholder="{{field.placeholder}}">
|
||||
[disabled]="field.readOnly">
|
||||
</mat-form-field>
|
||||
<error-widget [error]="field.validationSummary" ></error-widget>
|
||||
<error-widget *ngIf="isInvalidFieldRequired()" required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget>
|
||||
</div>
|
||||
|
||||
|
@@ -5,20 +5,27 @@
|
||||
width: 100%;
|
||||
vertical-align: baseline !important;
|
||||
|
||||
.mat-input-element {
|
||||
margin-left: 11px;
|
||||
}
|
||||
|
||||
.mat-input-prefix {
|
||||
position: absolute;
|
||||
margin-top: 58px;
|
||||
}
|
||||
|
||||
.mat-input-placeholder {
|
||||
margin-top: 5px;
|
||||
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 {
|
||||
|
Reference in New Issue
Block a user