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

feat[#47150]: Upgrade to spot icons

Kabiru Mwenja17f9e62dd6f5
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 13d5360b320..235b0faa659 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
@@ -1,5 +1,5 @@
<div
- class="spot-link help-text--entry"
+ class="spot-link"
[title]="text.open_dialog"
(click)="handleClick($event)"
(keydown.enter)="handleClick($event)"
@@ -7,5 +7,5 @@
role="button"
tabindex="0"
>
- <op-icon icon-classes="icon3 icon-help1"></op-icon>
+ <span class="spot-icon spot-icon_help1"></span>
</div>
diff --git a/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.ts b/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.ts
index 6cd3717d7cd..b0795274f5e 100644
--- a/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.ts
+++ b/frontend/src/app/shared/components/attribute-help-texts/static-attribute-help-text.component.ts
@@ -31,6 +31,7 @@ import {
ChangeDetectorRef,
Component,
ElementRef,
+ HostBinding,
Injector,
Input,
} from '@angular/core';
@@ -52,6 +53,8 @@ export class StaticAttributeHelpTextComponent {
@Input() public content:string;
+ @HostBinding('class.form--field-inline-buttons-container') className = true;
+
readonly text = {
open_dialog: this.I18n.t('js.help_texts.show_modal'),
};
@@ -66,7 +69,7 @@ export class StaticAttributeHelpTextComponent {
populateInputsFromDataset(this);
}
- public handleClick(event: Event):void {
+ public handleClick(event:Event):void {
this.opModalService.show(StaticAttributeHelpTextModalComponent, this.injector, { title: this.title, content: this.content });
event.preventDefault();
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index 55695d61a7b..99cc85ec45f 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -403,6 +403,10 @@ fieldset.form--fieldset
&.-bold
font-weight: bold
+ &.-flex
+ display: flex
+ align-items: center
+
&.-top
align-self: flex-start
line-height: 2.15rem
diff --git a/modules/storages/app/views/storages/project_settings/_form.html.erb b/modules/storages/app/views/storages/project_settings/_form.html.erb
index ba07b0d5f73..1ae4b36af63 100644
--- a/modules/storages/app/views/storages/project_settings/_form.html.erb
+++ b/modules/storages/app/views/storages/project_settings/_form.html.erb
@@ -59,7 +59,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if OpenProject::FeatureDecisions.storage_project_folders_active? %>
<div class="form--field -required">
- <%= styled_label_tag :project_folder_mode, class: "-bold" do %>
+ <%= styled_label_tag :project_folder_mode, class: "-bold -flex" do %>
<%= t(:"storages.label_project_folder") %>
<%= angular_component_tag 'op-static-attribute-help-text',
inputs: {