Browse Source

UI: Added on unit input to show the clear button when hovering the element

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

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

@ -15,7 +15,7 @@
limitations under the License.
-->
<mat-form-field appearance="outline" class="tb-inline-field" subscriptSizing="dynamic">
<mat-form-field appearance="outline" class="tb-inline-field tb-suffix-show-on-hover" subscriptSizing="dynamic">
<input matInput #unitInput [formControl]="unitsFormControl"
placeholder="{{ 'widget-config.set' | translate }}"
(focusin)="onFocus()"

15
ui-ngx/src/form.scss

@ -268,6 +268,21 @@
}
}
}
&.tb-suffix-show-on-hover {
.mat-mdc-text-field-wrapper {
.mat-mdc-form-field-icon-suffix {
padding: 0;
display: none;
}
}
&:hover {
.mat-mdc-text-field-wrapper {
.mat-mdc-form-field-icon-suffix {
display: block;
}
}
}
}
}
.tb-form-table {

Loading…
Cancel
Save