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

Replace icons with octicons

Aaron Contrerasb395956bec46
diff --git a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component.html
index 8615d86ae59..38c909af173 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component.html
@@ -8,10 +8,8 @@
[(ngModel)]="displayMode"
value="default"
name="display_mode_switch">
- <op-icon icon-classes="icon-no-hierarchy" [attr.icon-title]="text.display_mode.default"></op-icon>
- &ngsp;
+ <svg op-no-hierarchy-icon size="small" [attr.icon-title]="text.display_mode.default"></svg>
<span [textContent]="text.display_mode.default"></span>
- &ngsp;
<span class="form--inline-instructions" [textContent]="text.default"></span>
</label>
</div>
@@ -23,10 +21,8 @@
[(ngModel)]="displayMode"
value="hierarchy"
name="display_mode_switch">
- <op-icon icon-classes="icon-hierarchy" [attr.icon-title]="text.display_mode.hierarchy"></op-icon>
- &ngsp;
+ <svg op-hierarchy-icon size="small"[attr.icon-title]="text.display_mode.hierarchy"></svg>
<span [textContent]="text.display_mode.hierarchy"></span>
- &ngsp;
<span *ngIf="displayMode === 'hierarchy'"
class="form--inline-instructions"
[textContent]="text.display_mode.hierarchy_hint"></span>
@@ -40,10 +36,8 @@
[(ngModel)]="displayMode"
value="grouped"
name="display_mode_switch">
- <op-icon icon-classes="icon-group-by" [attr.icon-title]="text.label_group_by"></op-icon>
- &ngsp;
+ <svg op-group-icon size="small" [attr.icon-title]="text.label_group_by"></svg>
<span [textContent]="text.label_group_by"></span>
- &ngsp;
<select (change)="updateGroup($event.target.value)"
id="selected_grouping"
name="selected_grouping"
diff --git a/frontend/src/app/shared/components/icon/icon.module.ts b/frontend/src/app/shared/components/icon/icon.module.ts
index 882f1f0b3de..4a6042c7645 100644
--- a/frontend/src/app/shared/components/icon/icon.module.ts
+++ b/frontend/src/app/shared/components/icon/icon.module.ts
@@ -12,6 +12,9 @@ import {
OpEraseIconComponent,
OpFirstPersonViewIconComponent,
OpGridMenuIconComponent,
+ OpGroupIconComponent,
+ OpHierarchyIconComponent,
+ OpNoHierarchyIconComponent,
OpOrthographicPerspectiveIconComponent,
OpResizerVerticalLinesIconComponent,
OpScissorsIconComponent,
@@ -61,6 +64,9 @@ import {
OpEraseIconComponent,
OpFirstPersonViewIconComponent,
OpGridMenuIconComponent,
+ OpGroupIconComponent,
+ OpHierarchyIconComponent,
+ OpNoHierarchyIconComponent,
OpOrthographicPerspectiveIconComponent,
OpResizerVerticalLinesIconComponent,
OpScissorsIconComponent,
@@ -113,6 +119,9 @@ import {
OpEraseIconComponent,
OpFirstPersonViewIconComponent,
OpGridMenuIconComponent,
+ OpGroupIconComponent,
+ OpHierarchyIconComponent,
+ OpNoHierarchyIconComponent,
OpOrthographicPerspectiveIconComponent,
OpResizerVerticalLinesIconComponent,
OpScissorsIconComponent,