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

The menu_helper was expecting a spot-based class name (`help`) instead of `icon-help`. This became visible when enforcing a custom help_link (see #50666)

Henriette Darge035cbb9d27f3
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index 74b28188985..6d5a3d9bc8d 100644
--- a/config/initializers/menus.rb
+++ b/config/initializers/menus.rb
@@ -68,7 +68,7 @@ Redmine::MenuManager.map :top_menu do |menu|
OpenProject::Static::Links.help_link,
last: true,
caption: '',
- icon: 'icon-help op-app-help--icon',
+ icon: 'help op-app-help--icon',
html: { accesskey: OpenProject::AccessKeys.key_for(:help),
title: I18n.t('label_help'),
target: '_blank' }
diff --git a/frontend/src/global_styles/common/header/app-help.sass b/frontend/src/global_styles/common/header/app-help.sass
index b18f0f9c524..57acde51d63 100644
--- a/frontend/src/global_styles/common/header/app-help.sass
+++ b/frontend/src/global_styles/common/header/app-help.sass
@@ -1,5 +1,6 @@
.op-app-help
- &--icon
+ // For the higher specificity we switch to this nested class notation
+ .op-app-help--icon
&::before
display: flex
justify-content: center
diff --git a/lib/redmine/menu_manager/top_menu/help_menu.rb b/lib/redmine/menu_manager/top_menu/help_menu.rb
index 4b088d72f44..3a8c4df6ff3 100644
--- a/lib/redmine/menu_manager/top_menu/help_menu.rb
+++ b/lib/redmine/menu_manager/top_menu/help_menu.rb
@@ -49,7 +49,7 @@ module Redmine::MenuManager::TopMenu::HelpMenu
title: I18n.t(:label_help),
class: 'op-app-menu--item-action',
aria: { haspopup: 'true' } do
- op_icon('icon-help op-app-help--icon')
+ spot_icon('help', size: '1_25', classnames: 'op-app-help--icon')
end
render_menu_dropdown(