Merge pull request #9260 from vvlladd28/improvement/string-items/ontouch-hint-style
Added default color for mat-hint; Added onTouch event for string items list component
This commit is contained in:
commit
24fd3a1327
@ -29,6 +29,7 @@
|
||||
<mat-icon matChipRemove *ngIf="!disabled">close</mat-icon>
|
||||
</mat-chip-row>
|
||||
<input matInput type="text"
|
||||
(blur)="onTouched()"
|
||||
placeholder="{{ placeholder }}"
|
||||
style="max-width: 300px;min-width: 250px"
|
||||
#stringItemInput
|
||||
|
||||
@ -120,8 +120,8 @@ export class StringItemsListComponent implements ControlValueAccessor, OnInit {
|
||||
return this.stringItemsForm.get('item');
|
||||
}
|
||||
|
||||
private propagateChange = (v: any) => {
|
||||
};
|
||||
onTouched = () => {};
|
||||
private propagateChange: (value: any) => void = () => {};
|
||||
private dirty = false;
|
||||
|
||||
constructor(private fb: FormBuilder) {
|
||||
@ -159,6 +159,7 @@ export class StringItemsListComponent implements ControlValueAccessor, OnInit {
|
||||
}
|
||||
|
||||
registerOnTouched(fn: any): void {
|
||||
this.onTouched = fn;
|
||||
}
|
||||
|
||||
setDisabledState(isDisabled: boolean): void {
|
||||
|
||||
@ -52,6 +52,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.mat-mdc-form-field {
|
||||
.mat-mdc-form-field-hint-wrapper {
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin _mat-button-overwrites($primary, $config-or-theme) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user