Browse Source

UI: Fixed style in clear button for unit input

pull/8916/head
Vladyslav_Prykhodko 3 years ago
parent
commit
1e7b205cc9
  1. 1
      ui-ngx/src/app/shared/components/unit-input.component.html
  2. 16
      ui-ngx/src/form.scss

1
ui-ngx/src/app/shared/components/unit-input.component.html

@ -22,6 +22,7 @@
[matAutocomplete]="unitsAutocomplete"> [matAutocomplete]="unitsAutocomplete">
<button *ngIf="unitsFormControl.value && !disabled" <button *ngIf="unitsFormControl.value && !disabled"
type="button" type="button"
class="tb-icon-24"
matSuffix mat-icon-button aria-label="Clear" matSuffix mat-icon-button aria-label="Clear"
(click)="clear()"> (click)="clear()">
<mat-icon class="material-icons">close</mat-icon> <mat-icon class="material-icons">close</mat-icon>

16
ui-ngx/src/form.scss

@ -218,6 +218,19 @@
height: 20px; height: 20px;
font-size: 20px; font-size: 20px;
} }
.mat-mdc-button-touch-target {
width: 40px;
height: 40px;
}
&.tb-icon-24 {
width: 24px;
height: 24px;
padding: 0;
.mat-mdc-button-touch-target {
width: 24px;
height: 24px;
}
}
} }
> .mat-icon { > .mat-icon {
width: 20px; width: 20px;
@ -278,7 +291,8 @@
&:hover { &:hover {
.mat-mdc-text-field-wrapper { .mat-mdc-text-field-wrapper {
.mat-mdc-form-field-icon-suffix { .mat-mdc-form-field-icon-suffix {
display: block; display: flex;
align-items: center;
} }
} }
} }

Loading…
Cancel
Save