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

Remove spot icons from HTML templates

Henriette Dargeb7398656733e
diff --git a/frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.html b/frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.html
index bb896e69a31..48c849b1270 100644
--- a/frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.html
+++ b/frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.html
@@ -4,10 +4,7 @@
data-test-selector="op-add-existing-pane--search-input"
[placeholder]="text.placeholder"
>
- <span
- slot="before"
- class="spot-icon spot-icon_search"
- ></span>
+ <svg search-icon slot="before" size="small" />
</spot-text-field>
@if ((isLoading$ | async) === false) {
@@ -55,4 +52,3 @@
<svg:rect x="0" y="32" width="100%" height="12" rx="1" />
</op-content-loader>
}
-
diff --git a/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.html b/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.html
index 4526502a818..fc05e39b0d6 100644
--- a/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.html
+++ b/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.html
@@ -7,7 +7,8 @@
class="spot-link"
type="button"
>
- <span class="spot-icon spot-icon_add"></span>
+
+ <svg plus-icon size="small" />
<span [textContent]="text.add_setting"></span>
</button>
}
diff --git a/frontend/src/app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component.html
index 38f9b34c431..0f17d3216a5 100644
--- a/frontend/src/app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component.html
+++ b/frontend/src/app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component.html
@@ -14,6 +14,6 @@
class="advanced-filters--tooltip-trigger -multiline"
[attr.data-tooltip]="timeZoneText"
>
- <span class="spot-icon spot-icon_warning"></span>
+ <svg alert-icon size="small" />
</span>
}
diff --git a/frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.html
index 88ca5aecd6d..9e52b06bca7 100644
--- a/frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.html
+++ b/frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.html
@@ -22,6 +22,6 @@
class="advanced-filters--tooltip-trigger -multiline"
[attr.data-tooltip]="timeZoneText"
>
- <span class="spot-icon spot-icon_warning"></span>
+ <svg alert-icon size="small" />
</span>
}
diff --git a/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html b/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html
index 815aca88608..dcd2398ea82 100644
--- a/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html
+++ b/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html
@@ -9,8 +9,9 @@
@if (baselineIncompatibleFilter) {
<span
[title]="text.incompatible_filter"
- data-test-selector="query-filter-baseline-incompatible"
- class="spot-icon spot-icon_warning"></span>
+ data-test-selector="query-filter-baseline-incompatible">
+ <svg alert-icon size="small" />
+ </span>
}
</label>
diff --git a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.html b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.html
index b121b4926ac..9920dfd1025 100644
--- a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.html
@@ -2,18 +2,17 @@
<span [textContent]="legendDescription"></span>
&ngsp;
@if (userOffset !== offset) {
- <span
- data-test-selector="baseline-legend-time-offset"
- class="spot-icon spot-icon_1 spot-icon_info2"
- title="{{ text.in_your_timezone }} {{ localDate }}"
- ></span>
+ <span data-test-selector="baseline-legend-time-offset"
+ title="{{ text.in_your_timezone }} {{ localDate }}">
+ <svg info-icon size="small"></svg>
+ </span>
}
</span>
<div class="op-baseline-legends--details hidden-for-mobile">
- <span class="spot-icon spot-icon_1 spot-icon_arrow-in op-baseline-legends--details-icon-added"></span>
+ <svg op-arrow-in-icon size="small" class="op-baseline-legends--details-icon-added"></svg>
<span class="op-baseline-legends--details-added">{{text.now_meets_filter_criteria}}</span>
- <span class="spot-icon spot-icon_1 spot-icon_arrow-out op-baseline-legends--details-icon-removed"></span>
+ <svg reply-icon size="small" class="op-baseline-legends--details-icon-removed"></svg>
<span class="op-baseline-legends--details-removed">{{text.no_longer_meets_filter_criteria}}</span>
- <span class="spot-icon spot-icon_1 spot-icon_delta-triangle op-baseline-legends--details-icon-changed"></span>
+ <svg op-triangle-delta-icon size="small" class="op-baseline-legends--details-icon-changed"></svg>
<span class="op-baseline-legends--details-changed">{{text.maintained_with_changes}}</span>
</div>
diff --git a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.sass b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.sass
index 0f7ac3b3adc..50fdcc2008c 100644
--- a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.sass
+++ b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.sass
@@ -33,7 +33,7 @@
&-icon-added
color: #5F42E0
- &--icon-removed
+ &-icon-removed
color: #555555
&-icon-changed
diff --git a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-modal/baseline-modal.component.html b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-modal/baseline-modal.component.html
index f19e419ec22..4e8e37a57ce 100644
--- a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-modal/baseline-modal.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-modal/baseline-modal.component.html
@@ -12,10 +12,9 @@
[title]="text.toggle_title"
data-test-selector="baseline-button"
>
- <span class="spot-icon spot-icon_baseline"></span>
+ <svg op-baseline-icon size="small"/>
{{ text.toggle_title }}
-
- <span class="spot-icon spot-icon_dropdown"></span>
+ <svg triangle-down-icon size="small"/>
</button>
<op-baseline [visible]="opened"
[showActionBar]="true"
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 032e66fcd21..da0b5279f33 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
@@ -9,10 +9,10 @@
[dropdownActive]="allowed"
[title]="text.title"
>
- <span class="spot-icon spot-icon_add"></span>
+ <svg plus-icon size="small"/>
<span class="button--text"
[textContent]="text.createWithDropdown"
aria-hidden="true"></span>
- <span class="spot-icon spot-icon_dropdown"></span>
+ <svg triangle-down-icon size="small"/>
</button>
</div>
diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.html
index 3d0a9b0a615..84442f4c958 100644
--- a/frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.html
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.html
@@ -16,5 +16,5 @@
<span class="badge" [textContent]="filterCount"></span>
}
</span>
- <span class="spot-icon spot-icon_dropdown"></span>
+ <svg triangle-down-icon size="small"/>
</button>
diff --git a/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.html b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.html
index 70abae5159a..e116a20ba0e 100644
--- a/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.html
@@ -131,12 +131,23 @@
/>
}
@if (baselineIcon(workPackage) !== null) {
- <span
- class="spot-icon spot-icon_1 spot-icon_flex op-wp-single-card--content-baseline"
- [ngClass]="baselineMode==='added' ? 'spot-icon_flex spot-icon_arrow-in op-table-baseline--icon-added' : (baselineMode==='removed' ? 'spot-icon_arrow-out op-table-baseline--icon-removed' : 'spot-icon_delta-triangle op-table-baseline--icon-changed')"
- title="{{ baselineMode==='added' ? text.baseLineIconAdded : (baselineMode==='removed' ? text.baseLineIconRemoved : text.baseLineIconChanged) }}"
- >
- </span>
+ @switch (baselineMode) {
+ @case ('added') {
+ <span title="{{ text.baseLineIconAdded }}">
+ <svg op-arrow-in-icon size="small" class="op-table-baseline--icon-added"></svg>
+ </span>
+ }
+ @case ('removed') {
+ <span title="{{ text.baseLineIconRemoved }}">
+ <svg reply-icon size="small" class="op-table-baseline--icon-removed"></svg>
+ </span>
+ }
+ @default {
+ <span title="{{ text.baseLineIconChanged }}">
+ <svg op-triangle-delta-icon size="small" class="op-table-baseline--icon-changed"></svg>
+ </span>
+ }
+ }
}
</div>
@if (workPackage.assignee) {
diff --git a/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.html b/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.html
index c1bc091daa6..b83600f51d3 100644
--- a/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.html
@@ -18,7 +18,7 @@
aria-haspopup="true"
data-test-selector="op-wp-inline-create"
>
- <span class="spot-icon spot-icon_add"></span>
+ <svg plus-icon size="small" />
<span [textContent]="text.create"></span>
</button>
}
@@ -31,7 +31,7 @@
aria-haspopup="true"
data-test-selector="op-wp-inline-create-reference"
>
- <span class="spot-icon spot-icon_link"></span>
+ <svg link-icon size="small"></svg>
<span [textContent]="text.reference"></span>
</button>
}
diff --git a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relation-create.template.html b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relation-create.template.html
index cb94ed938fe..219f4c446b7 100644
--- a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relation-create.template.html
+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relation-create.template.html
@@ -11,7 +11,7 @@
(click)="toggleRelationsCreateForm()"
id="relation--add-relation"
>
- <span class="spot-icon spot-icon_add"></span>
+ <svg plus-icon size="small" />
<span [textContent]="text.addNewRelation"></span>
</button>
</div>
diff --git a/frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.html b/frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.html
index 97698b122a9..6862913f823 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.html
+++ b/frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.html
@@ -66,8 +66,8 @@
@if (baselineIncompatible) {
<span
[attr.title]="text.baselineIncompatible"
- class="spot-icon spot-icon_1_25 spot-icon_warning"
>
+ <svg alert-icon size="small"></svg>
</span>
}
@if (displayDropdownIcon) {
diff --git a/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html b/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html
index fb59ef0970c..80c5e45c0ad 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html
@@ -43,7 +43,7 @@
@if (baselineEnabled) {
<th class="wp-table--baseline-th -short hide-when-print">
<div class="generic-table--empty-header op-table-baseline--column-header">
- <span class="spot-icon spot-icon_baseline"></span>
+ <svg op-baseline-icon size="small" />
</div>
</th>
}
diff --git a/frontend/src/app/features/work-packages/components/wp-timer-button/wp-timer-button.component.html b/frontend/src/app/features/work-packages/components/wp-timer-button/wp-timer-button.component.html
index 595d8d9484e..4aded639297 100644
--- a/frontend/src/app/features/work-packages/components/wp-timer-button/wp-timer-button.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-timer-button/wp-timer-button.component.html
@@ -7,7 +7,7 @@
[title]="text.stop_timer"
(click)="stop()"
>
- <span class="spot-icon spot-icon_time-tracking-stop"></span>
+ <svg op-stopwatch-stop-icon size="small" />
<span class="button--text">
{{ elapsed$ | async }}
</span>
@@ -21,7 +21,8 @@
[title]="text.start_timer"
(click)="start()"
>
- <span class="spot-icon spot-icon_time-tracking-start"></span>
+
+ <svg op-stopwatch-start-icon size="small" />
</button>
}
}
diff --git a/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.component.ts b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.component.ts
index 9b840059b0e..a8cb97d7337 100644
--- a/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.component.ts
+++ b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.component.ts
@@ -183,9 +183,6 @@ export class OpAttachmentListItemComponent extends UntilDestroyedMixin implement
title: this.text.deleteTitle,
button_continue: this.text.deleteTitle,
},
- icon: {
- continue: 'delete',
- },
dangerHighlighting: true,
};
void this.confirmDialogService
diff --git a/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.html b/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.html
index f03d1df0ee6..b85dc1bedf5 100644
--- a/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.html
+++ b/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.html
@@ -8,5 +8,5 @@
tabindex="0"
data-test-selector="static-attribute-help-text--icon"
>
- <span class="spot-icon spot-icon_help1"></span>
+ <svg question-icon size="small" />
</div>
diff --git a/frontend/src/app/shared/components/header-project-select/header-project-select.component.html b/frontend/src/app/shared/components/header-project-select/header-project-select.component.html
index a30a078bacf..a9fcac39027 100644
--- a/frontend/src/app/shared/components/header-project-select/header-project-select.component.html
+++ b/frontend/src/app/shared/components/header-project-select/header-project-select.component.html
@@ -53,10 +53,7 @@
(inputFocus)="textFieldFocused = true"
(inputBlur)="textFieldFocused = false"
>
- <span
- slot="before"
- class="spot-icon spot-icon_search"
- ></span>
+ <svg search-icon slot="before" size="small" />
</spot-text-field>
}
@if ((loading$ | async) === false) {
@@ -108,7 +105,7 @@
class="button spot-action-bar--action"
[href]="allProjectsPath()"
>
- <span class="spot-icon spot-icon_unordered-list"></span>
+ <svg list-unordered-icon size="small" />
<span [textContent]="text.project.list"></span>
</a>
@if (canCreateNewProjects$ | async) {
@@ -116,7 +113,7 @@
class="button -primary spot-action-bar--action"
[href]="newProjectPath()"
>
- <span class="spot-icon spot-icon_add"></span>
+ <svg plus-icon size="small" />
<span [textContent]="text.project.singular"></span>
</a>
}
diff --git a/frontend/src/app/shared/components/icon/icon.module.ts b/frontend/src/app/shared/components/icon/icon.module.ts
index 633f5725e70..b905275f00c 100644
--- a/frontend/src/app/shared/components/icon/icon.module.ts
+++ b/frontend/src/app/shared/components/icon/icon.module.ts
@@ -84,18 +84,34 @@ import {
PaperclipIconComponent,
OpAddAttachmentIconComponent,
TriangleRightIconComponent,
+ OpStopwatchStopIconComponent,
+ CopyIconComponent,
+ TriangleDownIconComponent,
+ OpArrowInIconComponent,
+ ReplyIconComponent,
+ OpTriangleDeltaIconComponent,
+ OpBaselineIconComponent,
+ SearchIconComponent,
+ AlertIconComponent,
+ ListUnorderedIconComponent,
+ OpStopwatchStartIconComponent,
+ ChevronDownIconComponent,
} from '@openproject/octicons-angular';
+import { OpBaselineComponent } from 'core-app/features/work-packages/components/wp-baseline/baseline/baseline.component';
@NgModule({
imports: [
CommonModule,
+ AlertIconComponent,
AlertFillIconComponent,
BugIconComponent,
+ ChevronDownIconComponent,
ChevronLeftIconComponent,
ChevronRightIconComponent,
ClockIconComponent,
CloudIconComponent,
+ CopyIconComponent,
DownloadIconComponent,
FileDirectoryFillIconComponent,
FileDirectoryOpenFillIconComponent,
@@ -105,9 +121,12 @@ import {
InfoIconComponent,
LinkIconComponent,
LinkExternalIconComponent,
+ ListUnorderedIconComponent,
OpAddAttachmentIconComponent,
OpAlarmIconComponent,
OpAlarmSetIconComponent,
+ OpArrowInIconComponent,
+ OpBaselineIconComponent,
OpCursorRectangleSelectIconComponent,
OpCursorSelectIconComponent,
OpEnterpriseAddonsIconComponent,
@@ -127,7 +146,10 @@ import {
OpPdfIconComponent,
OpResizerVerticalLinesIconComponent,
OpScissorsIconComponent,
+ OpStopwatchStartIconComponent,
+ OpStopwatchStopIconComponent,
OpThreedReturnDefaultIconComponent,
+ OpTriangleDeltaIconComponent,
OpViewFitToIconComponent,
OpViewModalIconComponent,
OpViewThreedIconComponent,
@@ -136,6 +158,7 @@ import {
PersonIconComponent,
QuestionIconComponent,
ScreenFullIconComponent,
+ SearchIconComponent,
ServerIconComponent,
ShareAndroidIconComponent,
StarFillIconComponent,
@@ -175,6 +198,8 @@ import {
ArrowLeftIconComponent,
GrabberIconComponent,
PlusIconComponent,
+ ReplyIconComponent,
+ TriangleDownIconComponent,
],
declarations: [
OpIconComponent,
@@ -183,12 +208,15 @@ import {
exports: [
OpIconComponent,
+ AlertIconComponent,
AlertFillIconComponent,
BugIconComponent,
+ ChevronDownIconComponent,
ChevronLeftIconComponent,
ChevronRightIconComponent,
ClockIconComponent,
CloudIconComponent,
+ CopyIconComponent,
DownloadIconComponent,
FileDirectoryFillIconComponent,
FileDirectoryOpenFillIconComponent,
@@ -198,9 +226,12 @@ import {
InfoIconComponent,
LinkIconComponent,
LinkExternalIconComponent,
+ ListUnorderedIconComponent,
OpAddAttachmentIconComponent,
OpAlarmIconComponent,
OpAlarmSetIconComponent,
+ OpArrowInIconComponent,
+ OpBaselineIconComponent,
OpCursorRectangleSelectIconComponent,
OpCursorSelectIconComponent,
OpEnterpriseAddonsIconComponent,
@@ -220,7 +251,10 @@ import {
OpPdfIconComponent,
OpResizerVerticalLinesIconComponent,
OpScissorsIconComponent,
+ OpStopwatchStartIconComponent,
+ OpStopwatchStopIconComponent,
OpThreedReturnDefaultIconComponent,
+ OpTriangleDeltaIconComponent,
OpViewFitToIconComponent,
OpViewModalIconComponent,
OpViewThreedIconComponent,
@@ -229,6 +263,7 @@ import {
PersonIconComponent,
QuestionIconComponent,
ScreenFullIconComponent,
+ SearchIconComponent,
ServerIconComponent,
ShareAndroidIconComponent,
StarFillIconComponent,
@@ -267,6 +302,8 @@ import {
ArrowLeftIconComponent,
GrabberIconComponent,
PlusIconComponent,
+ ReplyIconComponent,
+ TriangleDownIconComponent,
],
})
diff --git a/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.html b/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.html
index 6bc2273c67d..82afb804de9 100644
--- a/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.html
+++ b/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.html
@@ -4,14 +4,10 @@
attr.data-test-selector="op-modal-banner-{{ type }}"
>
@if (type === 'info') {
- <span
- class="spot-icon spot-icon_info1 hidden-for-mobile"
- ></span>
+ <svg info-icon size="small" class="hidden-for-mobile" />
}
@if (type === 'warning') {
- <span
- class="spot-icon spot-icon_warning hidden-for-mobile"
- ></span>
+ <svg alert-icon size="small" class="hidden-for-mobile" />
}
<p
class="op-modal-banner--text spot-caption"
diff --git a/frontend/src/app/shared/components/modal/modal-overlay.component.html b/frontend/src/app/shared/components/modal/modal-overlay.component.html
index bf0f5469df9..58225f34bc3 100644
--- a/frontend/src/app/shared/components/modal/modal-overlay.component.html
+++ b/frontend/src/app/shared/components/modal/modal-overlay.component.html
@@ -19,7 +19,7 @@
class="spot-button spot-modal-overlay--close-button"
(click)="close($event)"
>
- <span class="spot-icon spot-icon_close"></span>
+ <svg x-icon size="small" />
</button>
}
<ng-template cdkPortalOutlet />
diff --git a/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.html b/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.html
index c67271750b9..0826e8394b8 100644
--- a/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.html
+++ b/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.html
@@ -54,9 +54,7 @@
data-test-selector="confirmation-modal--cancel"
(click)="close($event)"
>
- @if (icon.cancel; as clazz) {
- <span class="spot-icon spot-icon_{{clazz}}"></span>
- }
+ <svg x-icon size="small"></svg>
<span>{{text.button_cancel}}</span>
</button>
<button
@@ -66,8 +64,13 @@
[ngClass]="dangerHighlighting ? '-danger': '-primary'"
(click)="confirmAndClose($event)"
>
- @if (icon.continue; as clazz) {
- <span class="spot-icon spot-icon_{{clazz}}"></span>
+ @switch (icon.continue) {
+ @case ('trash') {
+ <svg trash-icon size="small"></svg>
+ }
+ @case ('unlink') {
+ <svg unlink-icon size="small"></svg>
+ }
}
<span>{{text.button_continue}}</span>
</button>
diff --git a/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.ts b/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.ts
index a5ddb888ef4..755b7bb67ed 100644
--- a/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.ts
+++ b/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.ts
@@ -93,9 +93,8 @@ export class ConfirmDialogModalComponent extends OpModalComponent {
close_popup: this.I18n.t('js.close_popup_title'),
};
- public icon = {
- continue: undefined,
- cancel: undefined,
+ public icon:{continue:'trash'|'unlink'} = {
+ continue: 'trash',
};
public passedData:string[];
diff --git a/frontend/src/app/shared/components/modals/wp-destroy-modal/wp-destroy.modal.html b/frontend/src/app/shared/components/modals/wp-destroy-modal/wp-destroy.modal.html
index ac09271ee01..4c4a8536b1c 100644
--- a/frontend/src/app/shared/components/modals/wp-destroy-modal/wp-destroy.modal.html
+++ b/frontend/src/app/shared/components/modals/wp-destroy-modal/wp-destroy.modal.html
@@ -80,7 +80,7 @@
class="button button_no-margin -danger spot-action-bar--action"
[attr.disabled]="busy || blockedDueToUnconfirmedChildren || undefined"
(click)="confirmDeletion($event)">
- <span class="spot-icon spot-icon_delete"></span>
+ <svg trash-icon size="small" />
{{ text.confirm }}
</button>
</div>
diff --git a/frontend/src/app/shared/components/op-non-working-days-list/op-non-working-days-list.component.html b/frontend/src/app/shared/components/op-non-working-days-list/op-non-working-days-list.component.html
index 0584651df9e..83bd5136994 100644
--- a/frontend/src/app/shared/components/op-non-working-days-list/op-non-working-days-list.component.html
+++ b/frontend/src/app/shared/components/op-non-working-days-list/op-non-working-days-list.component.html
@@ -49,7 +49,7 @@
class="spot-link op-non-working-days-list--add-button"
(click)="datepickerOpened = true"
>
- <span class="spot-icon spot-icon_add"></span>
+ <svg plus-icon size="small" />
<span [textContent]="text.add_non_working_day"></span>
</button>
</op-modal-single-date-picker>
diff --git a/frontend/src/app/shared/components/project-include/project-include.component.html b/frontend/src/app/shared/components/project-include/project-include.component.html
index 626fc201704..91fdfbf1e2f 100644
--- a/frontend/src/app/shared/components/project-include/project-include.component.html
+++ b/frontend/src/app/shared/components/project-include/project-include.component.html
@@ -19,7 +19,7 @@
>
</span>
}
- <span class="spot-icon spot-icon_dropdown"></span>
+ <svg triangle-down-icon size="small"/>
</button>
<ng-container slot="body">
@@ -47,10 +47,7 @@
(inputFocus)="textFieldFocused = true"
(inputBlur)="textFieldFocused = false"
>
- <span
- slot="before"
- class="spot-icon spot-icon_search"
- ></span>
+ <svg search-icon slot="before" size="small" />
</spot-text-field>
@if ((loading$ | async) === false) {
@if (projects.length > 0) {
diff --git a/frontend/src/app/shared/components/storages/file-link-list-item/file-link-list-item.component.ts b/frontend/src/app/shared/components/storages/file-link-list-item/file-link-list-item.component.ts
index 0a6263ab84d..b417a7f50d0 100644
--- a/frontend/src/app/shared/components/storages/file-link-list-item/file-link-list-item.component.ts
+++ b/frontend/src/app/shared/components/storages/file-link-list-item/file-link-list-item.component.ts
@@ -173,7 +173,7 @@ export class FileLinkListItemComponent implements OnInit, OnChanges, AfterViewIn
button_continue: this.text.removalButtonLabel,
},
icon: {
- continue: 'remove-link',
+ continue: 'unlink',
},
};
void this.confirmDialogService
diff --git a/frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.html b/frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.html
index 2fcbecbdba6..badc294aa17 100644
--- a/frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.html
+++ b/frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.html
@@ -5,7 +5,7 @@
data-test-selector="op-timer-account-menu-stop"
(click)="stopTimer()"
>
- <span class="spot-icon spot-icon_inline spot-icon_time-tracking-stop spot-icon_1_25"> </span>
+ <svg op-stopwatch-stop-icon size="small" />
{{text.stop}}
</a>
</span>
diff --git a/frontend/src/app/shared/components/toaster/toast.component.html b/frontend/src/app/shared/components/toaster/toast.component.html
index 1feff4c6a5c..7c0f72a3e89 100644
--- a/frontend/src/app/shared/components/toaster/toast.component.html
+++ b/frontend/src/app/shared/components/toaster/toast.component.html
@@ -29,10 +29,11 @@
@if (canBeHidden) {
<div>
<a (click)="show = true" [hidden]="show">
- <span class="spot-icon spot-icon_arrow-right2"></span>
+ <svg chevron-right-icon size="small"></svg>
</a>
<a (click)="show = false" [hidden]="!show">
- <span class="spot-icon spot-icon_arrow-down1"></span>
+
+ <svg chevron-down-icon size="small"></svg>
</a>
<span [textContent]="uploadText"></span>
</div>
@@ -72,7 +73,7 @@
[title]="text.close_popup"
(click)="remove()"
>
- <span class="spot-icon spot-icon_1 spot-icon_close"></span>
+ <svg x-icon size="small"></svg>
</button>
}
</div>
diff --git a/frontend/src/app/spot/components/drop-modal/drop-modal.component.html b/frontend/src/app/spot/components/drop-modal/drop-modal.component.html
index a3ead11d95b..4ba47d58029 100644
--- a/frontend/src/app/spot/components/drop-modal/drop-modal.component.html
+++ b/frontend/src/app/spot/components/drop-modal/drop-modal.component.html
@@ -23,7 +23,7 @@
[attr.aria-label]="text.close"
(click)="close()"
>
- <span class="spot-icon spot-icon_close"></span>
+ <svg x-icon size="small" />
</button>
</div>
}
diff --git a/frontend/src/app/spot/components/filter-chip/filter-chip.component.html b/frontend/src/app/spot/components/filter-chip/filter-chip.component.html
index ed93c405ec3..6fc09c405ad 100644
--- a/frontend/src/app/spot/components/filter-chip/filter-chip.component.html
+++ b/frontend/src/app/spot/components/filter-chip/filter-chip.component.html
@@ -6,7 +6,7 @@
[attr.aria-label]="text.remove"
[disabled]="disabled"
>
- <span class="spot-icon spot-icon_close"></span>
+ <svg x-icon size="small" />
</button>
}
<div class="spot-filter-chip--title">
diff --git a/frontend/src/app/spot/components/text-field/text-field.component.html b/frontend/src/app/spot/components/text-field/text-field.component.html
index 0b4c9be34fb..28e763d23bf 100644
--- a/frontend/src/app/spot/components/text-field/text-field.component.html
+++ b/frontend/src/app/spot/components/text-field/text-field.component.html
@@ -19,7 +19,7 @@
type="button"
class="spot-text-field--clear-button"
>
- <span class="spot-icon spot-icon_close"></span>
+ <svg x-icon size="small" />
</button>
}
<ng-content select="[slot=after]" />
diff --git a/frontend/src/global_styles/layout/work_packages/_table_baseline.sass b/frontend/src/global_styles/layout/work_packages/_table_baseline.sass
index 2c6bb616ddb..9e4c1fa3582 100644
--- a/frontend/src/global_styles/layout/work_packages/_table_baseline.sass
+++ b/frontend/src/global_styles/layout/work_packages/_table_baseline.sass
@@ -62,8 +62,3 @@
&--column-header
display: flex
align-items: center
-
- .op-table-baseline--column-cell .spot-icon
- display: flex
- align-items: center
- justify-items: center
diff --git a/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.template.html b/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.template.html
index 26e12ca9e9c..4c738f4d3ff 100644
--- a/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.template.html
+++ b/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.template.html
@@ -13,7 +13,7 @@
[attr.aria-label]="text.copyButtonHelpText"
(click)="onCopyButtonClick(snippet)"
>
- <span class="spot-icon spot-icon_copy"></span>
+ <svg copy-icon size="small"></svg>
</button>
@if (showCopyResult && snippet.id === copiedSnippetId) {
<div class="copy-result-message" [textContent]="lastCopyResult"></div>
@@ -22,7 +22,4 @@
</label>
</div>
}
-
</div>
-
-
diff --git a/modules/gitlab_integration/frontend/module/git-actions-menu/git-actions-menu.template.html b/modules/gitlab_integration/frontend/module/git-actions-menu/git-actions-menu.template.html
index 649db311f0a..27b02be8254 100644
--- a/modules/gitlab_integration/frontend/module/git-actions-menu/git-actions-menu.template.html
+++ b/modules/gitlab_integration/frontend/module/git-actions-menu/git-actions-menu.template.html
@@ -11,7 +11,7 @@
type="button"
[attr.aria-label]="text.copyButtonHelpText"
(click)="onCopyButtonClick(snippet)">
- <op-icon icon-classes="button--icon icon-copy" />
+ <svg copy-icon size="small"></svg>
</button>
@if (showCopyResult && snippet.id === copiedSnippetId) {
<div class="copy-result-message" [textContent]="lastCopyResult"></div>
@@ -20,5 +20,4 @@
</label>
</div>
}
-
</div>