From 09daf621c8f429efb714657c63efacd8b382300b Mon Sep 17 00:00:00 2001 From: Inga Mai Date: Thu, 28 May 2020 12:44:00 +0200 Subject: [PATCH] Make 'Log time' link accessible via keyboard --- .../field-types/wp-spent-time-display-field.module.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts b/frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts index 690dd029c5..bc6e2af306 100644 --- a/frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts +++ b/frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts @@ -33,7 +33,7 @@ import { ProjectResource } from "core-app/modules/hal/resources/project-resource import { InjectField } from "core-app/helpers/angular/inject-field.decorator"; import * as URI from 'urijs'; import { TimeEntryCreateService } from 'core-app/modules/time_entries/create/create.service'; -import {WorkPackageResource} from "core-app/modules/hal/resources/work-package-resource"; +import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource"; export class WorkPackageSpentTimeDisplayField extends DurationDisplayField { public text = { @@ -77,7 +77,8 @@ export class WorkPackageSpentTimeDisplayField extends DurationDisplayField { private appendTimelogLink(element:HTMLElement) { if (this.resource.logTime) { const timelogElement = document.createElement('a'); - timelogElement.setAttribute('class','icon icon-time'); + timelogElement.setAttribute('class', 'icon icon-time'); + timelogElement.setAttribute('href', ''); timelogElement.textContent = this.text.logTime; element.appendChild(timelogElement);