Skip to content

Commit

Permalink
TSK-1714: Show tooltip on Access Item label to see complete name
Browse files Browse the repository at this point in the history
  • Loading branch information
sofie29 authored and mustaphazorgati committed Sep 16, 2021
1 parent e579720 commit a054c45
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
5 changes: 4 additions & 1 deletion web/cypress/integration/workbaskets/workbaskets.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
4 changes: 4 additions & 0 deletions web/src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@
::ng-deep .mat-drawer {
overflow-y: visible !important;
}

::ng-deep mat-tooltip-component {
word-break: break-word;
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<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"
placeholder="{{placeHolderMessage}}"
formControlName="accessId"
[required]="isRequired"
[matAutocomplete]="auto"
matTooltip="{{accessIdForm.controls['accessId'].value}}"
class="type-ahead__input-field">
<!-- ERROR MESSAGE -->
<mat-error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@
.invalid {
color: $invalid;
}

mat-label.type-ahead__label {
pointer-events: auto;
}

0 comments on commit a054c45

Please sign in to comment.