diff --git a/app/components/members/role_form_component.html.erb b/app/components/members/role_form_component.html.erb
index 45d06ed41219..f07b488ed48c 100644
--- a/app/components/members/role_form_component.html.erb
+++ b/app/components/members/role_form_component.html.erb
@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
diff --git a/app/views/admin/backups/reset_token.html.erb b/app/views/admin/backups/reset_token.html.erb
index 2abc3be990af..91b8977b3af8 100644
--- a/app/views/admin/backups/reset_token.html.erb
+++ b/app/views/admin/backups/reset_token.html.erb
@@ -69,7 +69,7 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag '', class: '-highlight', disabled: true do
+ <%= styled_button_tag '', class: '-primary', disabled: true do
concat content_tag :i, '', class: "button--icon icon-#{icon}"
concat content_tag :span, t("backup.reset_token.action_#{action}"), class: 'button--text'
end %>
diff --git a/app/views/admin/backups/show.html.erb b/app/views/admin/backups/show.html.erb
index 071e15aea84d..c17f8d8a0ffe 100644
--- a/app/views/admin/backups/show.html.erb
+++ b/app/views/admin/backups/show.html.erb
@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.
<%=
link_to(
{ action: 'reset_token' },
- class: 'button -alt-highlight',
+ class: 'button -primary',
aria: {label: label},
title: label
) do
@@ -52,7 +52,7 @@ See COPYRIGHT and LICENSE files for more details.
link_to(
{ action: 'delete_token' },
method: :post,
- class: 'button -alt-highlight',
+ class: 'button -primary',
aria: {label: label},
title: label
) do
diff --git a/app/views/admin/settings/aggregation_settings/show.html.erb b/app/views/admin/settings/aggregation_settings/show.html.erb
index dbd45c84e3f4..2e7fc0b2b362 100644
--- a/app/views/admin/settings/aggregation_settings/show.html.erb
+++ b/app/views/admin/settings/aggregation_settings/show.html.erb
@@ -47,5 +47,5 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/admin/settings/api_settings/show.html.erb b/app/views/admin/settings/api_settings/show.html.erb
index c2b2a97efe50..046c3dd5cc31 100644
--- a/app/views/admin/settings/api_settings/show.html.erb
+++ b/app/views/admin/settings/api_settings/show.html.erb
@@ -67,5 +67,5 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/admin/settings/attachments_settings/show.html.erb b/app/views/admin/settings/attachments_settings/show.html.erb
index d4b4570fc11f..2b4cac263e6f 100644
--- a/app/views/admin/settings/attachments_settings/show.html.erb
+++ b/app/views/admin/settings/attachments_settings/show.html.erb
@@ -46,5 +46,5 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/admin/settings/authentication_settings/show.html.erb b/app/views/admin/settings/authentication_settings/show.html.erb
index a64f210f8f10..afe95a411bea 100644
--- a/app/views/admin/settings/authentication_settings/show.html.erb
+++ b/app/views/admin/settings/authentication_settings/show.html.erb
@@ -132,5 +132,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= link_to t(:label_ldap_authentication), {controller: '/ldap_auth_sources', action: 'index'}, class: 'icon icon-server-key' %>
<% end %>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/admin/settings/date_format_settings/show.html.erb b/app/views/admin/settings/date_format_settings/show.html.erb
index 9f3e79b44e42..f4be58a351c4 100644
--- a/app/views/admin/settings/date_format_settings/show.html.erb
+++ b/app/views/admin/settings/date_format_settings/show.html.erb
@@ -64,5 +64,5 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/admin/settings/experimental_settings/show.html.erb b/app/views/admin/settings/experimental_settings/show.html.erb
index 4ce41f32a1ef..99fb53c6018f 100644
--- a/app/views/admin/settings/experimental_settings/show.html.erb
+++ b/app/views/admin/settings/experimental_settings/show.html.erb
@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_button_tag t(:button_save),
- class: '-highlight -with-icon icon-checkmark',
+ class: '-primary -with-icon icon-checkmark',
data: {
confirm: t("settings.experimental.save_confirmation")
} %>
diff --git a/app/views/admin/settings/general_settings/show.html.erb b/app/views/admin/settings/general_settings/show.html.erb
index 0c0aac2d1f51..9c5bd2ca856b 100644
--- a/app/views/admin/settings/general_settings/show.html.erb
+++ b/app/views/admin/settings/general_settings/show.html.erb
@@ -83,5 +83,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= setting_check_box :welcome_on_homescreen %>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/admin/settings/icalendar_settings/show.html.erb b/app/views/admin/settings/icalendar_settings/show.html.erb
index 518f84d4193f..238c654a051a 100644
--- a/app/views/admin/settings/icalendar_settings/show.html.erb
+++ b/app/views/admin/settings/icalendar_settings/show.html.erb
@@ -44,5 +44,5 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/admin/settings/incoming_mails_settings/show.html.erb b/app/views/admin/settings/incoming_mails_settings/show.html.erb
index 779cb84a904c..690ea3f3a510 100644
--- a/app/views/admin/settings/incoming_mails_settings/show.html.erb
+++ b/app/views/admin/settings/incoming_mails_settings/show.html.erb
@@ -47,5 +47,5 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/admin/settings/languages_settings/show.html.erb b/app/views/admin/settings/languages_settings/show.html.erb
index 9646f9f00f63..5d7f1de8e979 100644
--- a/app/views/admin/settings/languages_settings/show.html.erb
+++ b/app/views/admin/settings/languages_settings/show.html.erb
@@ -38,7 +38,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_button_tag t(:button_save),
- class: '-highlight -with-icon icon-checkmark',
+ class: '-primary -with-icon icon-checkmark',
disabled: !Setting.available_languages_writable?
%>
<% end %>
diff --git a/app/views/admin/settings/mail_notifications_settings/show.html.erb b/app/views/admin/settings/mail_notifications_settings/show.html.erb
index d7851ff20687..ecf4e2ad6afe 100644
--- a/app/views/admin/settings/mail_notifications_settings/show.html.erb
+++ b/app/views/admin/settings/mail_notifications_settings/show.html.erb
@@ -85,7 +85,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end unless OpenProject::Configuration['email_delivery_configuration'] == 'legacy' %>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% if @deliveries %>
diff --git a/app/views/admin/settings/projects_settings/show.html.erb b/app/views/admin/settings/projects_settings/show.html.erb
index 7aa2f0dbd842..b81e0a93a2dd 100644
--- a/app/views/admin/settings/projects_settings/show.html.erb
+++ b/app/views/admin/settings/projects_settings/show.html.erb
@@ -100,5 +100,5 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/admin/settings/repositories_settings/show.html.erb b/app/views/admin/settings/repositories_settings/show.html.erb
index b6c6cdf0ef76..ae0b5f907479 100644
--- a/app/views/admin/settings/repositories_settings/show.html.erb
+++ b/app/views/admin/settings/repositories_settings/show.html.erb
@@ -136,5 +136,5 @@ See COPYRIGHT and LICENSE files for more details.
disabled: !Setting.commit_logtime_enabled?,
container_class: '-middle' %>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/admin/settings/show_plugin.html.erb b/app/views/admin/settings/show_plugin.html.erb
index c1bc59753092..a71d7bb630f8 100644
--- a/app/views/admin/settings/show_plugin.html.erb
+++ b/app/views/admin/settings/show_plugin.html.erb
@@ -30,6 +30,6 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<% end %>
diff --git a/app/views/groups/_users.html.erb b/app/views/groups/_users.html.erb
index 32fd094c0e8b..cb511e6762d4 100644
--- a/app/views/groups/_users.html.erb
+++ b/app/views/groups/_users.html.erb
@@ -62,7 +62,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
diff --git a/app/views/groups/index.html.erb b/app/views/groups/index.html.erb
index 5a6c29f31355..e0894b0a9918 100644
--- a/app/views/groups/index.html.erb
+++ b/app/views/groups/index.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_group_plural) do %>
<%= link_to new_group_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t(:label_group_new)},
title: t(:label_group_new)} do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/groups/new.html.erb b/app/views/groups/new.html.erb
index b4bbdf816a4c..ef6c1e256e03 100644
--- a/app/views/groups/new.html.erb
+++ b/app/views/groups/new.html.erb
@@ -33,5 +33,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for(@group) do |f| %>
<%= render partial: 'form', locals: { f: f } %>
-
@@ -103,7 +103,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= wikitoolbar_for 'comment_comments', preview_context: preview_context(@news) %>
<% end %>
<% end %>
diff --git a/app/views/oauth/applications/edit.html.erb b/app/views/oauth/applications/edit.html.erb
index c56fe48382e8..db35803c9adb 100644
--- a/app/views/oauth/applications/edit.html.erb
+++ b/app/views/oauth/applications/edit.html.erb
@@ -39,6 +39,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: 'form', locals: { f: f } %>
<% end %>
diff --git a/app/views/oauth/applications/index.html.erb b/app/views/oauth/applications/index.html.erb
index 47cb78921c1f..20f3c4c732c6 100644
--- a/app/views/oauth/applications/index.html.erb
+++ b/app/views/oauth/applications/index.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t('oauth.application.plural'), title_class: 'no-padding-bottom' do %>
<%= link_to new_oauth_application_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
title: t('oauth.application.new')} do %>
<%= op_icon('button--icon icon-add') %>
<%= t(:button_add) %>
diff --git a/app/views/oauth/applications/new.html.erb b/app/views/oauth/applications/new.html.erb
index 1ee51f8ec9ff..c208d363ebcd 100644
--- a/app/views/oauth/applications/new.html.erb
+++ b/app/views/oauth/applications/new.html.erb
@@ -42,6 +42,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: 'form', locals: { f: f } %>
<% end %>
diff --git a/app/views/projects/_toolbar.html.erb b/app/views/projects/_toolbar.html.erb
index 49fba78032ef..d31df7c88e3c 100644
--- a/app/views/projects/_toolbar.html.erb
+++ b/app/views/projects/_toolbar.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if User.current.allowed_in_project?(:add_subprojects, @project) %>
<%= link_to new_project_path(parent_id: @project.id),
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t(:label_subproject_new)},
title: t(:label_subproject_new)} do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/projects/destroy_info.html.erb b/app/views/projects/destroy_info.html.erb
index 4f5191b94d2b..b1b8adbb862d 100644
--- a/app/views/projects/destroy_info.html.erb
+++ b/app/views/projects/destroy_info.html.erb
@@ -56,7 +56,7 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag title: t(:button_delete), class: '-highlight', disabled: true do
+ <%= styled_button_tag title: t(:button_delete), class: '-primary', disabled: true do
concat content_tag :i, '', class: 'button--icon icon-delete'
concat content_tag :span, t(:button_delete), class: 'button--text'
end %>
diff --git a/app/views/projects/identifier/show.html.erb b/app/views/projects/identifier/show.html.erb
index ff4b7ecabe62..7c59b32a8ec3 100644
--- a/app/views/projects/identifier/show.html.erb
+++ b/app/views/projects/identifier/show.html.erb
@@ -49,11 +49,11 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.text_field :identifier %>
- <%= f.submit t(:button_update), class: 'button -highlight -with-icon icon-checkmark' %>
+ <%= f.submit t(:button_update), class: 'button -primary -with-icon icon-checkmark' %>
<%= link_to project_settings_general_path(@project), class: 'button' do %>
- <%= op_icon('button--icon icon-cancel') %>
+ <%= op_icon('button--icon icon-cancel') %>
<%= t(:button_cancel) %>
<% end %>
diff --git a/app/views/projects/settings/categories/show.html.erb b/app/views/projects/settings/categories/show.html.erb
index 69d2edca9210..be486d0a4c87 100644
--- a/app/views/projects/settings/categories/show.html.erb
+++ b/app/views/projects/settings/categories/show.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= link_to_if_authorized({ controller: '/categories', action: 'new', project_id: @project },
{ aria: { label: t(:label_work_package_category_new) },
title: t(:label_work_package_category_new),
- class: 'button -alt-highlight'}) do %>
+ class: 'button -primary'}) do %>
<%= op_icon('icon-add button--icon') %>
<%= t('activerecord.models.category') %>
<% end %>
diff --git a/app/views/projects/settings/custom_fields/show.html.erb b/app/views/projects/settings/custom_fields/show.html.erb
index abe34a478c83..6c8e10459d8c 100644
--- a/app/views/projects/settings/custom_fields/show.html.erb
+++ b/app/views/projects/settings/custom_fields/show.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if current_user.admin? %>
<%= link_to new_custom_field_path(type: 'WorkPackageCustomField'),
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t(:label_custom_field_new)},
title: t(:label_custom_field_new)} do %>
<%= op_icon('button--icon icon-add') %>
@@ -56,7 +56,7 @@ See COPYRIGHT and LICENSE files for more details.
} %>
diff --git a/app/views/projects/settings/versions/show.html.erb b/app/views/projects/settings/versions/show.html.erb
index 2cdf798b8c49..84c6f7498a92 100644
--- a/app/views/projects/settings/versions/show.html.erb
+++ b/app/views/projects/settings/versions/show.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if current_user.allowed_in_project?(:manage_versions, @project) %>
<%= link_to_if_authorized({ controller: '/versions', action: 'new', project_id: @project },
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t(:label_version_new)},
title: t(:label_version_new)}) do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/repositories/committers.html.erb b/app/views/repositories/committers.html.erb
index 86291b1a6db6..e583ab76cb06 100644
--- a/app/views/repositories/committers.html.erb
+++ b/app/views/repositories/committers.html.erb
@@ -75,12 +75,12 @@ See COPYRIGHT and LICENSE files for more details.
<% end -%>
-
+
- <%= submit_tag t(:button_update), class: 'button -highlight' %>
+ <%= submit_tag t(:button_update), class: 'button -primary' %>
<%= link_to project_settings_repository_path(@project.id), class: 'button' do %>
<%= t(:button_cancel) %>
<% end %>
diff --git a/app/views/repositories/destroy_info.html.erb b/app/views/repositories/destroy_info.html.erb
index 090f2db5812d..df9adc05c824 100644
--- a/app/views/repositories/destroy_info.html.erb
+++ b/app/views/repositories/destroy_info.html.erb
@@ -51,7 +51,7 @@ See COPYRIGHT and LICENSE files for more details.
method: :delete,
title: t(:button_delete),
disabled: true,
- class: '-highlight' do %>
+ class: '-primary' do %>
<%= op_icon('button--icon icon-delete') %>
<%= t(:button_delete) %>
<% end %>
@@ -93,4 +93,3 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
-
diff --git a/app/views/repositories/revisions.html.erb b/app/views/repositories/revisions.html.erb
index f198ce94364e..c3b608a0179b 100644
--- a/app/views/repositories/revisions.html.erb
+++ b/app/views/repositories/revisions.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= text_field_tag :rev, @rev, size: 8, placeholder: t(:label_revision) %>
<% end %>
<% end %>
diff --git a/app/views/roles/index.html.erb b/app/views/roles/index.html.erb
index 15b4b57c5ebe..26d4fe75c5a7 100644
--- a/app/views/roles/index.html.erb
+++ b/app/views/roles/index.html.erb
@@ -30,7 +30,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: Role.model_name.human(count: 2) do %>
<%= link_to({ action: 'new'},
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t(:label_role_new)},
title: t(:label_role_new)}) do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/roles/report.html.erb b/app/views/roles/report.html.erb
index 1d74b0c708c5..0be64fbdca8a 100644
--- a/app/views/roles/report.html.erb
+++ b/app/views/roles/report.html.erb
@@ -118,5 +118,5 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
-
diff --git a/app/views/types/form/_projects.html.erb b/app/views/types/form/_projects.html.erb
index 1758232e7a57..db8349d0431b 100644
--- a/app/views/types/form/_projects.html.erb
+++ b/app/views/types/form/_projects.html.erb
@@ -55,6 +55,6 @@ See COPYRIGHT and LICENSE files for more details.
diff --git a/app/views/types/form/_settings.html.erb b/app/views/types/form/_settings.html.erb
index 8a784ab50e3b..1e170049953c 100644
--- a/app/views/types/form/_settings.html.erb
+++ b/app/views/types/form/_settings.html.erb
@@ -70,6 +70,6 @@ See COPYRIGHT and LICENSE files for more details.
diff --git a/app/views/types/index.html.erb b/app/views/types/index.html.erb
index b0db4a085f39..d54eef893a95 100644
--- a/app/views/types/index.html.erb
+++ b/app/views/types/index.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_work_package_types) do %>
<%= link_to new_type_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: { label: t(:label_type_new) },
title: t(:label_type_new)} do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/users/_general.html.erb b/app/views/users/_general.html.erb
index f80127338136..b818d5a8fb1e 100644
--- a/app/views/users/_general.html.erb
+++ b/app/views/users/_general.html.erb
@@ -54,5 +54,5 @@ See COPYRIGHT and LICENSE files for more details.
as: :user do |f| %>
<%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/users/change_status_info.html.erb b/app/views/users/change_status_info.html.erb
index a0b2a46d6f94..63801b7a14a2 100644
--- a/app/views/users/change_status_info.html.erb
+++ b/app/views/users/change_status_info.html.erb
@@ -61,7 +61,7 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag '', class: '-highlight' do %>
+ <%= styled_button_tag '', class: '-primary' do %>
<%= op_icon('button--icon icon-checkmark') %>
<%= new_status %>
<% end %>
diff --git a/app/views/users/deletion_info.html.erb b/app/views/users/deletion_info.html.erb
index 4ba19e1e411f..65d493bb966e 100644
--- a/app/views/users/deletion_info.html.erb
+++ b/app/views/users/deletion_info.html.erb
@@ -58,7 +58,7 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag '', class: '-highlight', disabled: true do
+ <%= styled_button_tag '', class: '-primary', disabled: true do
concat content_tag :i, '', class: 'button--icon icon-delete'
concat content_tag :span, t(:button_delete), class: 'button--text'
end %>
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index d218a1056662..0e5b25f666bf 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -38,12 +38,12 @@ See COPYRIGHT and LICENSE files for more details.
<% users_info = user_limit && content_tag(:div) do %>
<%= t(:label_enterprise_active_users, current: OpenProject::Enterprise.active_user_count, limit: user_limit) %>
- <%= t(:button_upgrade) %>
+ <%= t(:button_upgrade) %>
<% end %>
<%= toolbar title: t(:label_user_plural), title_class: 'no-padding-bottom', subtitle: users_info do %>
<%= pagination_links_full @versions %>
<% end %>
diff --git a/app/views/wiki/rename.html.erb b/app/views/wiki/rename.html.erb
index 674597a208df..617f5e98e2c9 100644
--- a/app/views/wiki/rename.html.erb
+++ b/app/views/wiki/rename.html.erb
@@ -39,5 +39,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= f.check_box :redirect_existing_links %>
- <%= submit_tag t(:button_rename), class: 'button -highlight' %>
+ <%= submit_tag t(:button_rename), class: 'button -primary' %>
<% end %>
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb
index e6fc7a40cf9c..413d66c847cb 100644
--- a/app/views/wiki/show.html.erb
+++ b/app/views/wiki/show.html.erb
@@ -44,7 +44,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if @page && User.current.allowed_in_project?(:edit_wiki_pages, @project) %>
<%= link_to({controller: '/wiki', action: 'new_child', project_id: @project.identifier, id: @page},
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t('wiki.index.no_results_content_text')},
title: t('wiki.index.no_results_content_text')}) do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/wiki_menu_items/edit.html.erb b/app/views/wiki_menu_items/edit.html.erb
index ee74b41bd285..8be0870396af 100644
--- a/app/views/wiki_menu_items/edit.html.erb
+++ b/app/views/wiki_menu_items/edit.html.erb
@@ -61,7 +61,7 @@ See COPYRIGHT and LICENSE files for more details.
\ No newline at end of file
+>
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 cb48a50aa6ff..71dbfb6e4431 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
@@ -132,7 +132,7 @@
{{text.projectSpecific.title}}
<% end %>
diff --git a/modules/backlogs/app/views/rb_master_backlogs/index.html.erb b/modules/backlogs/app/views/rb_master_backlogs/index.html.erb
index dd2d3e7aada6..82cd41251684 100644
--- a/modules/backlogs/app/views/rb_master_backlogs/index.html.erb
+++ b/modules/backlogs/app/views/rb_master_backlogs/index.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_backlogs) do %>
diff --git a/modules/costs/app/views/projects/settings/time_entry_activities/_activities.html.erb b/modules/costs/app/views/projects/settings/time_entry_activities/_activities.html.erb
index ed21f553fe0d..0ea208d5e1ab 100644
--- a/modules/costs/app/views/projects/settings/time_entry_activities/_activities.html.erb
+++ b/modules/costs/app/views/projects/settings/time_entry_activities/_activities.html.erb
@@ -45,5 +45,5 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<% end %>
-
diff --git a/modules/meeting/app/views/meeting_contents/_form.html.erb b/modules/meeting/app/views/meeting_contents/_form.html.erb
index 1ea5a8337a0a..cbeb4cc1d584 100644
--- a/modules/meeting/app/views/meeting_contents/_form.html.erb
+++ b/modules/meeting/app/views/meeting_contents/_form.html.erb
@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
-<% end %>
\ No newline at end of file
+<% end %>
diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erb
index 7d3c2e4763f0..b6773b0c1802 100644
--- a/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erb
+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/index.html.erb
@@ -4,7 +4,7 @@
<%= toolbar title: t('webhooks.plural') do %>
-<% end %>
\ No newline at end of file
+<% end %>
diff --git a/spec/controllers/custom_styles_controller_spec.rb b/spec/controllers/custom_styles_controller_spec.rb
index fec0579a1b89..3d8122a03eac 100644
--- a/spec/controllers/custom_styles_controller_spec.rb
+++ b/spec/controllers/custom_styles_controller_spec.rb
@@ -537,7 +537,7 @@
describe "#update_colors", with_ee: %i[define_custom_style] do
let(:params) do
{
- design_colors: [{ "primary-color" => "#990000" }]
+ design_colors: [{ "primary-button-color" => "#990000" }]
}
end
@@ -553,7 +553,7 @@
end
it "updates DesignColor instances" do
- post :update_colors, params: { design_colors: [{ "primary-color" => "#110000" }] }
+ post :update_colors, params: { design_colors: [{ "primary-button-color" => "#110000" }] }
design_colors = DesignColor.all
expect(design_colors.size).to eq(1)
expect(design_colors.first.hexcode).to eq("#110000")
@@ -562,7 +562,7 @@
it "deletes DesignColor instances for each param" do
expect(DesignColor.count).to eq(1)
- post :update_colors, params: { design_colors: [{ "primary-color" => "" }] }
+ post :update_colors, params: { design_colors: [{ "primary-button-color" => "" }] }
expect(DesignColor.count).to eq(0)
expect(response).to redirect_to action: :show
end
diff --git a/spec/factories/design_color_factory.rb b/spec/factories/design_color_factory.rb
index ffbeb9c3b1fc..79a902072711 100644
--- a/spec/factories/design_color_factory.rb
+++ b/spec/factories/design_color_factory.rb
@@ -32,7 +32,7 @@
end
end
-{ "primary-color" => "#3493B3" }.each do |name, code|
+{ "primary-button-color" => "#3493B3" }.each do |name, code|
FactoryBot.define do
factory(:"design_color_#{name}", parent: :design_color) do
variable { name }
diff --git a/spec/features/support/components/danger_zone.rb b/spec/features/support/components/danger_zone.rb
index 0d125cf51192..516a1f9a3486 100644
--- a/spec/features/support/components/danger_zone.rb
+++ b/spec/features/support/components/danger_zone.rb
@@ -48,7 +48,7 @@ def confirmation_field
def danger_button
page.within container_selector do
- find('button.-highlight')
+ find('button.-primary')
end
end
diff --git a/spec/migrations/reduce_configurable_design_variables_spec.rb b/spec/migrations/reduce_configurable_design_variables_spec.rb
new file mode 100644
index 000000000000..41fa01d669d0
--- /dev/null
+++ b/spec/migrations/reduce_configurable_design_variables_spec.rb
@@ -0,0 +1,79 @@
+#-- copyright
+# OpenProject is an open source project management software.
+# Copyright (C) 2012-2024 the OpenProject GmbH
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 3.
+#
+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+# Copyright (C) 2006-2013 Jean-Philippe Lang
+# Copyright (C) 2010-2013 the ChiliProject Team
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# See COPYRIGHT and LICENSE files for more details.
+#++
+
+require 'spec_helper'
+require Rails.root.join("db/migrate/20240307102541_reduce_configurable_design_variables.rb")
+
+RSpec.describe ReduceConfigurableDesignVariables, type: :model do
+ context 'when migrating up' do
+ before do
+ create(:design_color, variable: 'alternative-color')
+ create(:design_color, variable: 'primary-color')
+ create(:design_color, variable: 'primary-color-dark')
+ create(:design_color, variable: 'content-link-color')
+ end
+
+ # Silencing migration logs, since we are not interested in that during testing
+ subject { ActiveRecord::Migration.suppress_messages { described_class.new.up } }
+
+ it "removes the obsolete variables and renames 'alternative-color'" do
+ expect { subject }
+ .to change(DesignColor, :count).from(4).to(2)
+
+ expect(DesignColor.find_by(variable: 'primary-button-color')).not_to be_nil
+ expect(DesignColor.find_by(variable: 'accent-color')).not_to be_nil
+ expect(DesignColor.find_by(variable: 'primary-color')).to be_nil
+ expect(DesignColor.find_by(variable: 'primary-color-dark')).to be_nil
+ expect(DesignColor.find_by(variable: 'alternative-color')).to be_nil
+ expect(DesignColor.find_by(variable: 'content-link-color')).to be_nil
+ end
+ end
+
+ context 'when migrating down' do
+ before do
+ create(:design_color, variable: 'primary-button-color')
+ create(:design_color, variable: 'accent-color')
+ end
+
+ # Silencing migration logs, since we are not interested in that during testing
+ subject { ActiveRecord::Migration.suppress_messages { described_class.new.down } }
+
+ it "re-creates the removed variables and reverts the renaming" do
+ expect { subject }
+ .to change(DesignColor, :count).from(2).to(4)
+
+ expect(DesignColor.find_by(variable: 'primary-button-color')).to be_nil
+ expect(DesignColor.find_by(variable: 'accent-color')).to be_nil
+ expect(DesignColor.find_by(variable: 'primary-color')).not_to be_nil
+ expect(DesignColor.find_by(variable: 'primary-color-dark')).not_to be_nil
+ expect(DesignColor.find_by(variable: 'alternative-color')).not_to be_nil
+ expect(DesignColor.find_by(variable: 'content-link-color')).not_to be_nil
+
+ end
+ end
+end
diff --git a/spec/models/design_color_spec.rb b/spec/models/design_color_spec.rb
index 355eb5caa4a0..8d6f92cd3f67 100644
--- a/spec/models/design_color_spec.rb
+++ b/spec/models/design_color_spec.rb
@@ -1,8 +1,8 @@
require 'spec_helper'
RSpec.describe DesignColor do
- let(:default_primary) { OpenProject::CustomStyles::Design.variables['primary-color'] }
- let(:primary_color) { create(:'design_color_primary-color') }
+ let(:default_primary) { OpenProject::CustomStyles::Design.variables['primary-button-color'] }
+ let(:primary_color) { create(:'design_color_primary-button-color') }
describe "#setables" do
it "returns an Array of instances" do
@@ -28,7 +28,7 @@
end
it "returns nil hexcode if hexcode not present" do
- expect(described_class.new(variable: "primary-color").hexcode)
+ expect(described_class.new(variable: "primary-button-color").hexcode)
.to be_nil
end
end
diff --git a/spec/views/layouts/base.html.erb_spec.rb b/spec/views/layouts/base.html.erb_spec.rb
index 1ea78c6de8ed..c31a972c01aa 100644
--- a/spec/views/layouts/base.html.erb_spec.rb
+++ b/spec/views/layouts/base.html.erb_spec.rb
@@ -190,7 +190,7 @@
context "EE is active and styles are present" do
let(:custom_style) { create(:custom_style) }
- let(:primary_color) { create(:'design_color_primary-color') }
+ let(:primary_color) { create(:'design_color_primary-button-color') }
before do
allow(EnterpriseToken).to receive(:allows_to?).with(:define_custom_style).and_return(true)
@@ -206,7 +206,7 @@
primary_color
render
expect(rendered).to render_template partial: 'custom_styles/_inline_css'
- expect(rendered).to match /--primary-color:\s*#{primary_color.hexcode}/
+ expect(rendered).to match /--primary-button-color:\s*#{primary_color.hexcode}/
end
end