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

Revert "Change icons to spot-icon part 2 (#12673)"

Benjamin Bädorf6ed1e579121b
diff --git a/frontend/src/app/features/admin/types/attribute-group.component.html b/frontend/src/app/features/admin/types/attribute-group.component.html
index 5f8a7ad5d3a..64d59fd0c3f 100644
--- a/frontend/src/app/features/admin/types/attribute-group.component.html
+++ b/frontend/src/app/features/admin/types/attribute-group.component.html
@@ -1,41 +1,26 @@
<div class="type-form-conf-group">
<div class="group-head">
- <span class="spot-icon spot-icon_1_25 spot-icon_drag-handle group-handle"></span>
+ <span class="group-handle icon-drag-handle"></span>
<op-group-edit-in-place
- [name]="group.name"
- (onValueChange)="rename($event)"
- class="group-name"
- ></op-group-edit-in-place>
- <button
- class="clear-button delete-group"
- type="button"
- (click)="deleteGroup.emit()"
- >
- <span class="spot-icon spot-icon_1_25 spot-icon_close"></span>
- </button>
+ [name]="group.name"
+ (onValueChange)="rename($event)"
+ class="group-name">
+ </op-group-edit-in-place>
+ <span class="delete-group icon-small icon-close" (click)="deleteGroup.emit()"></span>
</div>
<div class="attributes" dragula="attributes" [(dragulaModel)]="group.attributes">
- <div
- *ngFor="let attribute of group.attributes"
- class="type-form-conf-attribute"
- [attr.data-key]="attribute.key"
- >
- <span class="spot-icon spot-icon_1 spot-icon_drag-handle attribute-handle"></span>
+ <div *ngFor="let attribute of group.attributes"
+ class="type-form-conf-attribute"
+ [attr.data-key]="attribute.key">
+ <span class="attribute-handle icon-drag-handle"></span>
<span class="attribute-name">
{{ attribute.translation }}
- <span
- class="attribute-cf-label"
- *ngIf="attribute.is_cf"
- [textContent]="text.custom_field"
- ></span>
+ <span class="attribute-cf-label"
+ *ngIf="attribute.is_cf"
+ [textContent]="text.custom_field">
+ </span>
</span>
- <button
- class="clear-button delete-attribute"
- type="button"
- (click)="removeFromGroup(attribute)"
- >
- <span class="spot-icon spot-icon_1 spot-icon_close"></span>
- </button>
+ <span class="delete-attribute icon-small icon-close" (click)="removeFromGroup(attribute)"></span>
</div>
</div>
</div> <!-- END attribute group -->
diff --git a/frontend/src/app/features/admin/types/group-edit-in-place.html b/frontend/src/app/features/admin/types/group-edit-in-place.html
index 6dd782b1c8b..991dcf01dd0 100644
--- a/frontend/src/app/features/admin/types/group-edit-in-place.html
+++ b/frontend/src/app/features/admin/types/group-edit-in-place.html
@@ -1,19 +1,16 @@
-<button
- *ngIf="!editing"
- type="button"
- (click)="startEditing()"
- [textContent]="name"
- class="clear-button group-edit-handler"
-></button>
+<div *ngIf="!editing"
+ (click)="startEditing()"
+ [textContent]="name"
+ class="group-edit-handler">
+</div>
<input
- #nameInput
- *ngIf="editing"
- class="group-edit-in-place--input"
- type="text"
- opAutofocus
- [(ngModel)]="editedName"
- [attr.placeholder]="placeholder"
- (blur)="saveEdition($event)"
- (keydown.escape)="reset()"
- (keydown.enter)="saveEdition($event)"
->
+ #nameInput
+ *ngIf="editing"
+ class="group-edit-in-place--input"
+ type="text"
+ opAutofocus
+ [(ngModel)]="editedName"
+ [attr.placeholder]="placeholder"
+ (blur)="saveEdition($event)"
+ (keydown.escape)="reset()"
+ (keydown.enter)="saveEdition($event)">
diff --git a/frontend/src/app/features/admin/types/query-group.component.html b/frontend/src/app/features/admin/types/query-group.component.html
index 165b85236a4..9baf9efca6a 100644
--- a/frontend/src/app/features/admin/types/query-group.component.html
+++ b/frontend/src/app/features/admin/types/query-group.component.html
@@ -1,27 +1,17 @@
<div class="type-form-conf-group type-form-query-group">
- <div class="group-head">
- <span class="spot-icon spot-icon_1_25 spot-icon_drag-handle group-handle"></span>
- <op-group-edit-in-place
- [name]="group.name"
- (onValueChange)="rename($event)"
- class="group-name"
- ></op-group-edit-in-place>
- <button
- class="delete-group clear-button"
- type="button"
- (click)="deleteGroup.emit()"
- >
- <span class="spot-icon spot-icon_1 spot-icon_close"></span>
- </button>
- </div>
- <div class="type-form-query">
- <button
- class="clear-button type-form-query-group--edit-button"
- type="button"
- (click)="editQuery.emit()"
- >
- <span class="spot-icon spot-icon_1_25 spot-icon_edit spot-icon_inline"></span>
- <span>{{ text.edit_query }}</span>
- </button>
- </div>
+ <div class="group-head">
+ <span class="group-handle icon-drag-handle"></span>
+ <op-group-edit-in-place
+ [name]="group.name"
+ (onValueChange)="rename($event)"
+ class="group-name">
+ </op-group-edit-in-place>
+ <span class="delete-group icon-small icon-close" (click)="deleteGroup.emit()"></span>
+ </div>
+ <div class="type-form-query">
+ <span class="type-form-query-group--edit-button" (click)="editQuery.emit()">
+ <op-icon icon-classes="button--icon icon-edit"></op-icon>
+ {{ text.edit_query }}
+ </span>
+ </div>
</div> <!-- END query group -->
diff --git a/frontend/src/app/features/admin/types/type-form-configuration.html b/frontend/src/app/features/admin/types/type-form-configuration.html
index b1f6df88c61..b81afd11d77 100644
--- a/frontend/src/app/features/admin/types/type-form-configuration.html
+++ b/frontend/src/app/features/admin/types/type-form-configuration.html
@@ -2,25 +2,20 @@
<div class="toolbar toolbar_empty-title">
<ul class="toolbar-items">
<li class="toolbar-item">
- <button
- type="button -alt-highlight"
- class="form-configuration--reset button"
- (click)="resetToDefault($event)"
- >
- <span class="spot-icon spot-icon_undo"></span>
+ <button type="button -alt-highlight"
+ class="form-configuration--reset button"
+ (click)="resetToDefault($event)">
+ <op-icon icon-classes="button--icon icon-undo"></op-icon>
<span class="button--text" [textContent]="text.reset"></span>
</button>
</li>
<li
*ngIf="!typeBanner.eeShowBanners"
class="toolbar-item drop-down">
- <a
- class="form-configuration--add-group button -alt-highlight"
- aria-haspopup="true"
- >
- <span class="spot-icon spot-icon_add"></span>
+ <a class="form-configuration--add-group button -alt-highlight" aria-haspopup="true">
+ <op-icon icon-classes="button--icon icon-add"></op-icon>
<span class="button--text" [textContent]="text.label_group"></span>
- <span class="spot-icon spot-icon_dropdown"></span>
+ <op-icon icon-classes="button--dropdown-indicator"></op-icon>
</a>
<ul class="menu-drop-down-container">
<li>
@@ -72,12 +67,10 @@
<span class="advice" [textContent]="text.drag_to_activate"></span>
</div>
<div class="attributes" dragula="attributes" [(dragulaModel)]="inactives">
- <div
- *ngFor="let inactive_attribute of inactives"
- class="type-form-conf-attribute"
- [attr.data-key]="inactive_attribute.key"
- >
- <span class="attribute-handle spot-icon spot-icon_1 spot-icon_drag-handle"></span>
+ <div *ngFor="let inactive_attribute of inactives"
+ class="type-form-conf-attribute"
+ [attr.data-key]="inactive_attribute.key">
+ <span class="attribute-handle icon-drag-handle"></span>
<span class="attribute-name">
{{ inactive_attribute.translation }}
<span *ngIf="inactive_attribute.is_cf"
diff --git a/frontend/src/app/features/invite-user-modal/button/invite-user-button.component.html b/frontend/src/app/features/invite-user-modal/button/invite-user-button.component.html
index a9893189231..a398694ffbd 100644
--- a/frontend/src/app/features/invite-user-modal/button/invite-user-button.component.html
+++ b/frontend/src/app/features/invite-user-modal/button/invite-user-button.component.html
@@ -4,7 +4,9 @@
(click)="onAddNewClick($event)"
*ngIf="canInviteUsersToProject$ | async"
>
- <span class="spot-icon spot-icon_user-plus"></span>
- {{text.button}}
+ <span class="icon-context">
+ <op-icon icon-classes="icon-user-plus icon-context"></op-icon>
+ {{text.button}}
+ </span>
</button>
diff --git a/frontend/src/app/features/invite-user-modal/principal/principal-search.component.html b/frontend/src/app/features/invite-user-modal/principal/principal-search.component.html
index 2de047e2a99..01fc643308b 100644
--- a/frontend/src/app/features/invite-user-modal/principal/principal-search.component.html
+++ b/frontend/src/app/features/invite-user-modal/principal/principal-search.component.html
@@ -42,14 +42,14 @@
<ng-template ng-tag-tmp>
<!--Invite a new user by email-->
<div *ngIf="canInviteByEmail$ | async">
- <span class="spot-icon spot-icon_inline spot-icon_1_25 spot-icon_mail1"></span>
+ <op-icon icon-classes="icon-mail1 icon-context"></op-icon>
<b>{{ text.inviteNewUser }}</b>
{{ input }}
</div>
<!--Create a new placeholder by name-->
<div *ngIf="canCreateNewPlaceholder$ | async">
- <span class="spot-icon spot-icon_inline spot-icon_1_25 spot-icon_add"></span>
+ <op-icon icon-classes="icon-add icon-context"></op-icon>
<b>{{ text.createNewPlaceholder }}</b>
{{ input }}
</div>
diff --git a/frontend/src/app/features/invite-user-modal/principal/principal.component.html b/frontend/src/app/features/invite-user-modal/principal/principal.component.html
index 276f37bcaf6..bb245195437 100644
--- a/frontend/src/app/features/invite-user-modal/principal/principal.component.html
+++ b/frontend/src/app/features/invite-user-modal/principal/principal.component.html
@@ -112,8 +112,8 @@
class="button button_no-margin spot-action-bar--action"
(click)="back.emit()"
>
- <span class="spot-icon spot-icon_arrow-left1"></span>
- <span>{{ text.principal.backButton }}</span>
+ <op-icon icon-classes="button--icon icon-arrow-left1"></op-icon>
+ {{ text.principal.backButton }}
</button>
</div>
diff --git a/frontend/src/app/features/invite-user-modal/summary/summary.component.html b/frontend/src/app/features/invite-user-modal/summary/summary.component.html
index 2d4987ca1a8..bb45bb818a5 100644
--- a/frontend/src/app/features/invite-user-modal/summary/summary.component.html
+++ b/frontend/src/app/features/invite-user-modal/summary/summary.component.html
@@ -35,9 +35,9 @@
type="button"
class="button button_no-margin spot-action-bar--action"
(click)="back.emit()"
- >
- <span class="spot-icon spot-icon_arrow-left1"></span>
- <span>{{ text.backButton }}</span>
+ >
+ <op-icon icon-classes="button--icon icon-arrow-left1"></op-icon>
+ {{ text.backButton }}
</button>
</div>
diff --git a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html
index 8710f5aef0b..fb709262295 100644
--- a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html
+++ b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html
@@ -41,7 +41,7 @@
[textContent]="currentViewTitle"
aria-hidden="true"
></span>
- <span class="spot-icon spot-icon_dropdown hidden-for-mobile"></span>
+ <span class="spot-icon spot-icon_1_25 spot-icon_pulldown hidden-for-mobile"></span>
</button>
</ng-container>
diff --git a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.html b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.html
index dcd007039e0..d18e3d2d6a9 100644
--- a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.html
+++ b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.html
@@ -4,35 +4,39 @@
<ng-container *ngIf="!showAbove" [ngTemplateOutlet]="template"></ng-container>
<div
- class="work-package--details--long-field work-packages--activity--add-comment hide-when-print"
- [ngClass]="{'work-packages--activity--add-comment_top': showAbove} "
- #commentContainer
- *ngIf="canAddComment"
+ class="work-package--details--long-field work-packages--activity--add-comment hide-when-print"
+ [ngClass]="{'work-packages--activity--add-comment_top': showAbove} "
+ #commentContainer
+ *ngIf="canAddComment"
>
<div class="inline-edit--container inplace-edit">
<edit-form-portal
- *ngIf="active"
- [schemaInput]="schema"
- [changeInput]="change"
- [editFieldHandler]="handler"
- ></edit-form-portal>
+ *ngIf="active"
+ [schemaInput]="schema"
+ [changeInput]="change"
+ [editFieldHandler]="handler"
+ >
+ </edit-form-portal>
<div
- *ngIf="!active"
- (dragover)="startDragOverActivation($event)"
- (dragenter)="startDragOverActivation($event)"
+ *ngIf="!active"
+ (dragover)="startDragOverActivation($event)"
+ (dragenter)="startDragOverActivation($event)"
>
<button
- class="work-package-comment inline-edit--display-field"
- [title]="text.editTitle"
- (click)="activate()"
+ class="work-package-comment inline-edit--display-field"
+ [title]="text.editTitle"
+ (click)="activate()"
>
<span
- class="work-package-comment--text"
- [textContent]="text.placeholder"
- ></span>
+ class="work-package-comment--text"
+ [textContent]="text.placeholder"
+ >
+ </span>
- <span class="spot-icon spot-icon_edit"></span>
- <span class="hidden-for-sighted" [textContent]="text.editTitle"></span>
+ <op-icon
+ class="work-package-comment--icon"
+ icon-classes="icon-edit" [icon-title]="text.editTitle"
+ ></op-icon>
</button>
</div>
</div>
diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/wp-button.template.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-button.template.html
index 905fb674984..c425d34e96f 100644
--- a/frontend/src/app/features/work-packages/components/wp-buttons/wp-button.template.html
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-button.template.html
@@ -1,12 +1,10 @@
-<button
- class="button -icon-only {{ buttonClass }}"
- type="button"
- [class.-active]="isActive"
- [disabled]="disabled || (!isToggle() && isActive)"
- [attr.id]="buttonId"
- [attr.title]="label"
- [attr.accesskey]="accessKey"
- (click)="performAction($event)"
->
- <span class="spot-icon spot-icon_{{ icon }}"></span>
+<button class="button {{ buttonClass }}"
+ type="button"
+ [class.-active]="isActive"
+ [disabled]="disabled || (!isToggle() && isActive)"
+ [attr.id]="buttonId"
+ [attr.title]="label"
+ [attr.accesskey]="accessKey"
+ (click)="performAction($event)">
+ <op-icon icon-classes="{{ iconClass }} button--icon"></op-icon>
</button>
diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.html
index 92e9128adee..6f2cdbea68a 100644
--- a/frontend/src/app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.html
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.html
@@ -13,6 +13,6 @@
<span class="button--text"
[textContent]="text.createWithDropdown"
aria-hidden="true"></span>
- <span class="spot-icon spot-icon_dropdown"></span>
+ <span class="spot-icon spot-icon_1 spot-icon_pulldown"></span>
</button>
</div>
diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/wp-details-view-button/wp-details-view-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-details-view-button/wp-details-view-button.component.ts
index 3735bb6e859..b937116fa0e 100644
--- a/frontend/src/app/features/work-packages/components/wp-buttons/wp-details-view-button/wp-details-view-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-details-view-button/wp-details-view-button.component.ts
@@ -54,7 +54,7 @@ export class WorkPackageDetailsViewButtonComponent extends AbstractWorkPackageBu
public buttonClass = 'toolbar-icon';
- public icon = 'info2';
+ public iconClass = 'icon-info2';
public activateLabel:string;
diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.html
index 6f7f07e0468..11b4bec24b8 100644
--- a/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.html
@@ -1,13 +1,13 @@
<button
- type="button"
(click)="markAllBelongingNotificationsAsRead()"
[attr.title]="text.mark_as_read"
- class="button"
->
- <span class="spot-icon spot-icon_mark-read"></span>
+ class="button">
+
+ <op-icon icon-classes="button--icon icon-mark-read"></op-icon>
<span
*ngIf="showWithText"
class="button--text"
[textContent]="text.mark_as_read"
- ></span>
+ >
+ </span>
</button>
diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component.ts
index ae739206235..9fee09652f9 100644
--- a/frontend/src/app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component.ts
@@ -46,7 +46,7 @@ export class ZenModeButtonComponent extends AbstractWorkPackageButtonComponent {
public buttonClass = 'toolbar-icon';
- public icon = 'zen-mode';
+ public iconClass = 'icon-zen-mode';
static inZenMode = false;
diff --git a/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.html b/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.html
index 88cb1de76f8..2429294c92d 100644
--- a/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.html
+++ b/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.html
@@ -1,8 +1,7 @@
<div class="work-packages--details-toolbar">
- <wp-watcher-button
- [workPackage]="workPackage"
- [showText]="true"
- ></wp-watcher-button>
+ <wp-watcher-button [workPackage]="workPackage"
+ [showText]="true">
+ </wp-watcher-button>
<op-work-package-mark-notification-button
*ngIf="displayNotificationsButton"
@@ -11,14 +10,12 @@
data-qa-selector="mark-notification-read-button"
></op-work-package-mark-notification-button>
- <button
- class="button dropdown-relative"
- [attr.accesskey]="7"
+ <button class="button dropdown-relative"
+ [attr.accesskey]="7"
- wpSingleContextMenu
- [wpSingleContextMenu-workPackage]="workPackage"
- >
+ wpSingleContextMenu
+ [wpSingleContextMenu-workPackage]="workPackage">
<span class="button--text" [textContent]="text.button_more"></span>
- <span class="spot-icon spot-icon_dropdown"></span>
+ <op-icon icon-classes="button--dropdown-indicator"></op-icon>
</button>
</div>
diff --git a/frontend/src/app/features/work-packages/components/wp-new/wp-new-full-view.html b/frontend/src/app/features/work-packages/components/wp-new/wp-new-full-view.html
index 4e7097cc522..028235c47b5 100644
--- a/frontend/src/app/features/work-packages/components/wp-new/wp-new-full-view.html
+++ b/frontend/src/app/features/work-packages/components/wp-new/wp-new-full-view.html
@@ -16,7 +16,7 @@
<li class="toolbar-item hidden-for-mobile">
<button id="create-wp-menu-button"
[attr.title]="text.button_settings"
- class="button -icon-only last work-packages-settings-button toolbar-icon"
+ class="button last work-packages-settings-button toolbar-icon"
wpCreateSettingsMenu>
<i class="button--icon icon-show-more"></i>
</button>
diff --git a/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component.ts b/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component.ts
index 2d472cbe645..2f63ba0150b 100644
--- a/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component.ts
@@ -112,13 +112,13 @@ export class WorkPackageWatcherButtonComponent extends UntilDestroyedMixin imple
this.buttonText = this.I18n.t('js.label_unwatch');
this.buttonClass = '-active';
this.buttonId = 'unwatch-button';
- this.watchIconClass = 'watched';
+ this.watchIconClass = 'icon-watched';
} else {
this.buttonTitle = this.I18n.t('js.label_watch_work_package');
this.buttonText = this.I18n.t('js.label_watch');
this.buttonClass = '';
this.buttonId = 'watch-button';
- this.watchIconClass = 'unwatched';
+ this.watchIconClass = 'icon-unwatched';
}
}
}
diff --git a/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.html b/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.html
index 9567f0a6be9..5179fd69e7e 100644
--- a/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.html
+++ b/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.html
@@ -1,14 +1,11 @@
-<button
- *ngIf="displayWatchButton"
- type="button -icon-only"
- (click)="toggleWatch()"
- [attr.title]="buttonTitle"
- [disabled]="disabled"
- [ngClass]="buttonClass"
- class="button toolbar-icon"
- [id]="buttonId"
->
+<button *ngIf="displayWatchButton"
+ (click)="toggleWatch()"
+ [attr.title]="buttonTitle"
+ [disabled]="disabled"
+ [ngClass]="buttonClass"
+ class="button toolbar-icon"
+ [id]="buttonId">
- <span class="spot-icon spot-icon_{{ watchIconClass }}"></span>
+ <op-icon icon-classes="button--icon {{watchIconClass}}"></op-icon>
<span class="button--text" *ngIf="showText" [textContent]="buttonText"></span>
</button>
diff --git a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html
index c4f58cfc4af..9031e23b632 100644
--- a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html
+++ b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html
@@ -1,9 +1,8 @@
-<div
- edit-form
- [resource]="workPackage"
- *ngIf="workPackage"
- class="work-packages--show-view"
->
+<div edit-form
+ [resource]="workPackage"
+ *ngIf="workPackage"
+ class="work-packages--show-view">
+
<wp-breadcrumb [workPackage]="workPackage"></wp-breadcrumb>
<div class="toolbar-container">
@@ -27,10 +26,9 @@
</wp-create-button>
</li>
<li class="toolbar-item" *ngIf="displayWatchButton">
- <wp-watcher-button
- [workPackage]="workPackage"
- [showText]="false"
- ></wp-watcher-button>
+ <wp-watcher-button [workPackage]="workPackage"
+ [showText]="false">
+ </wp-watcher-button>
</li>
<li class="toolbar-item" *ngIf="(displayNotificationsButton$ | async)">
<op-work-package-mark-notification-button
@@ -39,16 +37,15 @@
></op-work-package-mark-notification-button>
</li>
<li class="toolbar-item hidden-for-mobile">
- <zen-mode-toggle-button></zen-mode-toggle-button>
+ <zen-mode-toggle-button>
+ </zen-mode-toggle-button>
</li>
<li class="toolbar-item action_menu_main" id="action-show-more-dropdown-menu">
- <button
- class="button -icon-only dropdown-relative toolbar-icon"
- [attr.title]="text.fullView.buttonMore"
- wpSingleContextMenu
- [wpSingleContextMenu-workPackage]="workPackage"
- >
- <span class="spot-icon spot-icon_show-more"></span>
+ <button class="button dropdown-relative toolbar-icon"
+ [attr.title]="text.fullView.buttonMore"
+ wpSingleContextMenu
+ [wpSingleContextMenu-workPackage]="workPackage">
+ <op-icon icon-classes="button--icon icon-show-more"></op-icon>
</button>
</li>
</ul>
@@ -63,25 +60,17 @@
</div>
<div class="work-packages-full-view--split-right work-packages-tab-view--overflow">
<div class="work-packages--panel-inner">
- <span
- class="hidden-for-sighted"
- tabindex="-1"
- opAutofocus
- [textContent]="focusAnchorLabel"
- ></span>
+ <span class="hidden-for-sighted" tabindex="-1" opAutofocus [textContent]="focusAnchorLabel"></span>
<op-wp-tabs [workPackage]="workPackage" [view]="'full'"></op-wp-tabs>
- <div
- class="tabcontent"
- data-notification-selector='notification-scroll-container'
- ui-view
- ></div>
+ <div class="tabcontent"
+ data-notification-selector='notification-scroll-container'
+ ui-view>
+ </div>
</div>
<div class="work-packages-full-view--resizer hidden-for-mobile hide-when-print">
- <wp-resizer
- [elementClass]="'work-packages-full-view--split-right'"
- [localStorageKey]="'openProject-fullViewFlexBasis'"
- ></wp-resizer>
+ <wp-resizer [elementClass]="'work-packages-full-view--split-right'"
+ [localStorageKey]="'openProject-fullViewFlexBasis'"></wp-resizer>
</div>
</div>
</div>
diff --git a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.html
index a3d71b0e67c..ae998d61ac0 100644
--- a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.html
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.html
@@ -1,5 +1,5 @@
<form
- *ngIf="form && handleSubmit && fields.length"
+ *ngIf="form && handleSubmit"
data-qa="op-form--container"
class="op-form"
[formGroup]="form"
@@ -34,7 +34,7 @@
<formly-form
data-qa="op-form--container"
class="op-form--fieldset"
- *ngIf="form && !handleSubmit && fields.length"
+ *ngIf="form && !handleSubmit"
[form]="form"
[model]="innerModel"
[fields]="fields"
diff --git a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.sass b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.sass
deleted file mode 100644
index 240e748817b..00000000000
--- a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.sass
+++ /dev/null
@@ -1,3 +0,0 @@
-.op-dynamic-form
- &:empty
- display: none
diff --git a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.scss b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.scss
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.ts
index c9f7959811c..eeab22f98ab 100644
--- a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.ts
@@ -2,13 +2,11 @@ import {
ChangeDetectorRef,
Component,
EventEmitter,
- HostBinding,
Input,
OnChanges,
Output,
SimpleChanges,
ViewChild,
- ViewEncapsulation,
} from '@angular/core';
import { FormlyForm } from '@ngx-formly/core';
import { I18nService } from 'core-app/core/i18n/i18n.service';
@@ -128,16 +126,13 @@ import idFromLink from 'core-app/features/hal/helpers/id-from-link';
@Component({
selector: 'op-dynamic-form',
templateUrl: './dynamic-form.component.html',
- styleUrls: ['./dynamic-form.component.sass'],
- encapsulation: ViewEncapsulation.None,
+ styleUrls: ['./dynamic-form.component.scss'],
providers: [
DynamicFormService,
DynamicFieldsService,
],
})
export class DynamicFormComponent extends UntilDestroyedMixin implements OnChanges {
- @HostBinding('class.op-dynamic-form') className = true;
-
/** Backend form URL (e.g. https://community.openproject.org/api/v3/projects/dev-large/form) */
@Input() formUrl?:string;
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
index 73912d99985..92b16380f77 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
@@ -8,7 +8,7 @@
<img [src]="image.enterprise_edition" class="hidden-for-mobile op-enterprise-banner--image">
<div class="op-toast--content">
<div class="op-enterprise-banner--header">
- <span class="spot-icon spot-icon_enterprise-addons"></span>
+ <span class="spot-icon spot-icon_enterprise-addons spot-icon_inline"></span>
<span [textContent]="text.enterpriseFeature" class="op-enterprise-banner--title"></span>
<button
*ngIf="collapsible"
@@ -35,17 +35,15 @@
*ngIf="moreInfoLink"
[attr.href]="moreInfoLink"
class="op-enterprise-banner--info-button"
- target=”_blank”
- >
- <span class="spot-icon spot-icon_inline spot-icon_external-link"></span>
+ target=”_blank”>
+ <span class="spot-icon spot-icon_external-link"></span>
{{ text.more_info_text }}
</a>
<a
[href]="pricingUrl"
target=”_blank”
- class="button -highlight"
- >
+ class="button -highlight">
<span class="spot-icon spot-icon_enterprise-addons"></span>
{{ text.upgrade }}
</a>
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
index 382bc76a51f..a82768c1893 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
@@ -21,7 +21,7 @@
&--image
width: 115px
height: 75px
- padding-right: $spot-spacing_1_5
+ padding-right: 20px
margin: auto
&--buttons
@@ -30,10 +30,11 @@
align-items: center
&--info-button
- margin-right: $spot-spacing-1
+ padding-top: $spot-spacing-1_25
+ padding-right: $spot-spacing-1_5
.spot-icon:before
- padding-right: $spot-spacing-0_5
+ padding-right: 0.875rem
&--collapsible-button
background: transparent
diff --git a/frontend/src/global_styles/content/_buttons.sass b/frontend/src/global_styles/content/_buttons.sass
index 85f8cb968a5..0660154d136 100644
--- a/frontend/src/global_styles/content/_buttons.sass
+++ b/frontend/src/global_styles/content/_buttons.sass
@@ -50,10 +50,6 @@ a.button
&::before
padding: 0 var(--button--text-icon-spacing) 0 0
- &.-icon-only
- width: 34px
- padding: 0
-
&.-danger
background: var(--content-form-danger-zone-bg-color)
color: var(--content-form-danger-zone-font-color)
diff --git a/frontend/src/global_styles/content/_types_form_configuration.sass b/frontend/src/global_styles/content/_types_form_configuration.sass
index 6414e976834..f5cef6c374d 100644
--- a/frontend/src/global_styles/content/_types_form_configuration.sass
+++ b/frontend/src/global_styles/content/_types_form_configuration.sass
@@ -12,8 +12,12 @@
cursor: -webkit-grab
cursor: grab
color: var(--font-color-on-primary-dark)
+ font-size: 12px
op-group-edit-in-place
display: inline-block
+ .delete-group:before
+ vertical-align: bottom
+ color: var(--font-color-on-primary-dark)
.attributes
min-height: 29px
@@ -29,12 +33,16 @@
background: white
color: #222222
+ .delete-group,
+ .delete-attribute
+ cursor: pointer
+
&.-error
background: var(--content-form-error-color)
.group-name
border-color: var(--content-form-error-color)
.group-handle,
- .delete-group
+ .delete-group:before
color: var(--font-color-on-primary)
@@ -63,6 +71,7 @@
cursor: -webkit-grab
cursor: grab
color: var(--body-font-color)
+ font-size: 12px
.delete-attribute:before
color: var(--body-font-color)
@@ -78,7 +87,7 @@
.group-head,
.type-form-conf-attribute
display: flex
- align-items: center
+ align-items: baseline
justify-content: space-between
.icon-drag-handle
flex-basis: 15px
@@ -94,14 +103,4 @@
cursor: pointer
color: white
-.clear-button
- border: 0
- background: transparent
- margin: 0
- padding: 0
- cursor: pointer
- text-transform: inherit
-
-.group-edit-handler
- width: 100%
- text-align: left
+// Ensure dropdown is shown
diff --git a/spec/features/types/form_configuration_spec.rb b/spec/features/types/form_configuration_spec.rb
index 511530cd462..7194eff598d 100644
--- a/spec/features/types/form_configuration_spec.rb
+++ b/spec/features/types/form_configuration_spec.rb
@@ -78,7 +78,7 @@ RSpec.describe 'form configuration', js: true do
# Wait for page reload
sleep 1
- expect(page).not_to have_selector('.group-edit-handler', text: 'WHATEVER')
+ expect(page).not_to have_selector('.group-head', text: 'WHATEVER')
form.expect_group('details', 'Details')
form.expect_attribute(key: :assignee)
end
diff --git a/spec/features/work_packages/tabs/watcher_tab_spec.rb b/spec/features/work_packages/tabs/watcher_tab_spec.rb
index 927627f174a..593d20eeff2 100644
--- a/spec/features/work_packages/tabs/watcher_tab_spec.rb
+++ b/spec/features/work_packages/tabs/watcher_tab_spec.rb
@@ -21,11 +21,13 @@ RSpec.describe 'Watcher tab', js: true, selenium: true do
def expect_button_is_watching
title = I18n.t('js.label_unwatch_work_package')
expect(page).to have_selector("#unwatch-button[title='#{title}']", wait: 10)
+ expect(page).to have_selector('#unwatch-button .button--icon.icon-watched', wait: 10)
end
def expect_button_is_not_watching
title = I18n.t('js.label_watch_work_package')
expect(page).to have_selector("#watch-button[title='#{title}']")
+ expect(page).to have_selector('#watch-button .button--icon.icon-unwatched')
end
shared_examples 'watch and unwatch with button' do