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

Switch to spot-icons in team planner & reminder settings

Benjamin Bädorf09d7d02aed0d
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 e80a28d973a..c841656d15b 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
@@ -11,8 +11,9 @@
[ngClass]="{'-active': (showAddExistingPane | async)}"
[title]="text.add_existing_title"
data-qa-selector="op-team-planner--add-existing-toggle"
- (click)="toggleAddExistingPane()">
- <op-icon icon-classes="icon-add button--icon"></op-icon>
+ (click)="toggleAddExistingPane()"
+ >
+ <span class="spot-icon spot-icon_add"></span>
<span
class="button--text"
[textContent]="text.add_existing">
@@ -33,11 +34,14 @@
opTeamPlannerViewSelectDropdown
[viewOptions]="viewOptions"
(viewSelected)="switchView($event)"
- data-qa-selector="op-team-planner--view-select-dropdown">
- <span class="button--text ellipsis"
- [textContent]="currentViewTitle"
- aria-hidden="true"></span>
- <op-icon icon-classes="button--icon icon-small icon-pulldown hidden-for-mobile"></op-icon>
+ data-qa-selector="op-team-planner--view-select-dropdown"
+ >
+ <span
+ class="button--text ellipsis"
+ [textContent]="currentViewTitle"
+ aria-hidden="true"
+ ></span>
+ <span class="spot-icon spot-icon_1_25 spot-icon_pulldown hidden-for-mobile"></span>
</button>
</ng-container>
@@ -74,7 +78,7 @@
[attr.aria-label]="text.remove_assignee"
[attr.data-qa-remove-assignee]="resource.extendedProps.principal.id"
>
- <op-icon icon-classes="icon-remove"></op-icon>
+ <span class="spot-icon spot-icon_remove-1"></span>
</button>
</div>
diff --git a/frontend/src/app/features/user-preferences/reminder-settings/reminder-time/reminder-settings-daily-time.component.html b/frontend/src/app/features/user-preferences/reminder-settings/reminder-time/reminder-settings-daily-time.component.html
index b82347b7aa1..1b5ba0cf6e2 100644
--- a/frontend/src/app/features/user-preferences/reminder-settings/reminder-time/reminder-settings-daily-time.component.html
+++ b/frontend/src/app/features/user-preferences/reminder-settings/reminder-time/reminder-settings-daily-time.component.html
@@ -29,11 +29,13 @@
[ngModelOptions]="{standalone: true}"
[disabled]="isDisabled(time, activeTimes)"
class="op-reminder-settings-daily-time--active"
- attr.data-qa-selector="op-settings-daily-time--active-{{i + 1}}">
+ attr.data-qa-selector="op-settings-daily-time--active-{{i + 1}}"
+ >
<label
class="op-reminder-settings-daily-time--label"
[textContent]="text.timeLabel(i + 1)"
- attr.for="op-reminder-settings-daily-time-{{i + 1}}--time">
+ attr.for="op-reminder-settings-daily-time-{{i + 1}}--time"
+ >
</label>
<select
[ngModel]="time"
@@ -42,11 +44,13 @@
[disabled]="(enabled$ | async) === false"
class="op-reminder-settings-daily-time--time form--select -narrow"
attr.id="op-reminder-settings-daily-time-{{i + 1}}--time"
- required="true">
+ required="true"
+ >
<option
*ngFor="let availableTime of availableTimes"
[value]="availableTime"
- [disabled]="time !== availableTime && selectedTimes.includes(availableTime)">
+ [disabled]="time !== availableTime && selectedTimes.includes(availableTime)"
+ >
{{timeLabel(availableTime)}}
</option>
</select>
@@ -55,8 +59,9 @@
type="button"
*ngIf="timeRemovable$ | async"
(click)="removeTime(selectedTimes, i)"
- attr.data-qa-selector="op-settings-daily-time--remove-{{i + 1}}">
- <op-icon icon-classes="icon-small icon-remove icon4"></op-icon>
+ attr.data-qa-selector="op-settings-daily-time--remove-{{i + 1}}"
+ >
+ <span class="spot-icon spot-icon_1_25 spot-icon_remove-1"></span>
</button>
</div>
@@ -64,8 +69,9 @@
class="button op-reminder-settings-daily-time--add"
type="button"
[disabled]="nonAddable$ | async"
- (click)="addTime(selectedTimes)">
- <i class="button--icon icon-add"></i>
- <span class="button--text">{{text.addTime}}</span>
+ (click)="addTime(selectedTimes)"
+ >
+ <span class="spot-icon spot-icon_add"></span>
+ <span>{{text.addTime}}</span>
</button>
</ng-container>
diff --git a/frontend/src/global_styles/content/modules/_team_planner.sass b/frontend/src/global_styles/content/modules/_team_planner.sass
index 05cd04af6e6..88b57679176 100644
--- a/frontend/src/global_styles/content/modules/_team_planner.sass
+++ b/frontend/src/global_styles/content/modules/_team_planner.sass
@@ -40,7 +40,6 @@ $view-select-dropdown-width: 8rem
&--view-select-dropdown
width: $view-select-dropdown-width
- display: flex
margin: 0
.button--text