Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Make 'Log time' link accessible via keyboard

Inga Mai09daf621c8f4
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 690dd029c53..bc6e2af3068 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);