TSK-1714: Show tooltip on Access Item label to see complete name
This commit is contained in:
parent
e579720716
commit
a054c45799
|
@ -75,7 +75,10 @@ context('TASKANA Workbaskets', () => {
|
|||
cy.get('button[mattooltip="Add new access"')
|
||||
.click()
|
||||
.then(() => {
|
||||
cy.get('mat-form-field').contains('mat-form-field', 'Access id').find('input').type('teamlead-2');
|
||||
cy.get('mat-form-field')
|
||||
.contains('mat-form-field', 'Access id')
|
||||
.find('input')
|
||||
.type('teamlead-2', { force: true });
|
||||
cy.get('input[aria-label="checkAll"]:first').click();
|
||||
cy.saveWorkbaskets();
|
||||
});
|
||||
|
|
|
@ -71,3 +71,7 @@
|
|||
::ng-deep .mat-drawer {
|
||||
overflow-y: visible !important;
|
||||
}
|
||||
|
||||
::ng-deep mat-tooltip-component {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<form [formGroup]="accessIdForm">
|
||||
<div [ngClass]="placeHolderMessage == 'Access id'? 'type-ahead--small' : 'type-ahead--large'">
|
||||
<mat-form-field class="type-ahead__form-field" appearance="outline">
|
||||
<mat-label>{{name || placeHolderMessage}}</mat-label>
|
||||
<mat-label class="type-ahead__label" matTooltip="{{name}}" matTooltipPosition="above">
|
||||
{{name || placeHolderMessage}}
|
||||
</mat-label>
|
||||
<!-- TEXT INPUT -->
|
||||
<input matInput
|
||||
type="text"
|
||||
|
@ -9,6 +11,7 @@
|
|||
formControlName="accessId"
|
||||
[required]="isRequired"
|
||||
[matAutocomplete]="auto"
|
||||
matTooltip="{{accessIdForm.controls['accessId'].value}}"
|
||||
class="type-ahead__input-field">
|
||||
<!-- ERROR MESSAGE -->
|
||||
<mat-error
|
||||
|
|
|
@ -32,3 +32,7 @@
|
|||
.invalid {
|
||||
color: $invalid;
|
||||
}
|
||||
|
||||
mat-label.type-ahead__label {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue