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

Merge button styles "alt-highlight" and "highlight" together in one "primary" style

Henriette Darge67dcba6fbe74
diff --git a/app/components/add_button_component.rb b/app/components/add_button_component.rb
index 5f267b1ad66..46dafe74e64 100644
--- a/app/components/add_button_component.rb
+++ b/app/components/add_button_component.rb
@@ -71,7 +71,7 @@ class AddButtonComponent < ApplicationComponent
end
def link_css_class
- 'button -alt-highlight'
+ 'button -primary'
end
def icon
diff --git a/app/components/filters_component.html.erb b/app/components/filters_component.html.erb
index 0fab3fba3f1..f17e1568549 100644
--- a/app/components/filters_component.html.erb
+++ b/app/components/filters_component.html.erb
@@ -123,7 +123,7 @@
</div>
</li>
<li class="advanced-filters--controls">
- <%= submit_tag t('button_apply'), class: 'button -small -highlight', name: nil %>
+ <%= submit_tag t('button_apply'), class: 'button -small -primary', name: nil %>
</li>
</ul>
<% unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list)%>
diff --git a/app/components/individual_principal_base_filter_component.html.erb b/app/components/individual_principal_base_filter_component.html.erb
index 588b7e913c9..265c4a8ad61 100644
--- a/app/components/individual_principal_base_filter_component.html.erb
+++ b/app/components/individual_principal_base_filter_component.html.erb
@@ -105,7 +105,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= text_field_tag 'name', params[:name], class: 'simple-filters--filter-value' %>
</li>
<li class="simple-filters--controls">
- <%= submit_tag t(:button_apply), class: 'button -highlight -small', name: nil %>
+ <%= submit_tag t(:button_apply), class: 'button -primary -small', name: nil %>
<%= link_to t(:button_clear), clear_url, class: 'button -small -with-icon icon-undo' %>
</li>
</ul>
diff --git a/app/components/members/role_form_component.html.erb b/app/components/members/role_form_component.html.erb
index 45d06ed4121..f07b488ed48 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.
</p>
<p>
- <%= f.submit t(:button_change), class: "button -highlight -small" %>
+ <%= f.submit t(:button_change), class: "button -primary -small" %>
<%= link_to t(:button_cancel),
'#',
data: {
diff --git a/app/views/account/_footer.html.erb b/app/views/account/_footer.html.erb
index bd0de28b4d1..5e958144344 100644
--- a/app/views/account/_footer.html.erb
+++ b/app/views/account/_footer.html.erb
@@ -3,6 +3,6 @@
<% if footer = registration_footer %>
<span><%= footer %></span>
<% end %>
- <%= styled_button_tag t(:button_create), class: 'button_no-margin -highlight -with-icon icon-checkmark spot-action-bar--action' %>
+ <%= styled_button_tag t(:button_create), class: 'button_no-margin -primary -with-icon icon-checkmark spot-action-bar--action' %>
</div>
</div>
diff --git a/app/views/account/_login.html.erb b/app/views/account/_login.html.erb
index 84f726cba1b..112f59476a0 100644
--- a/app/views/account/_login.html.erb
+++ b/app/views/account/_login.html.erb
@@ -77,7 +77,7 @@ See COPYRIGHT and LICENSE files for more details.
&nbsp;
</label>
<input type="submit" name="login" id="login-pulldown"
- value="<%=t(:button_login)%>" class="button -highlight" tabindex="1" />
+ value="<%=t(:button_login)%>" class="button -primary" tabindex="1" />
</div>
</div>
diff --git a/app/views/account/_password_login_form.html.erb b/app/views/account/_password_login_form.html.erb
index ee1ef844a6b..1fcf9d217bd 100644
--- a/app/views/account/_password_login_form.html.erb
+++ b/app/views/account/_password_login_form.html.erb
@@ -57,7 +57,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= submit_tag t(:button_login),
name: :login,
- class: 'button -highlight',
+ class: 'button -primary',
data: { disable_with: t(:label_loading) } %>
<div class="login-options-container">
@@ -78,7 +78,7 @@ See COPYRIGHT and LICENSE files for more details.
<section data-augmented-model-wrapper
data-activation-selector=".registration-modal--activation-link"
- data-modal-class-name="registration-modal -highlight">
+ data-modal-class-name="registration-modal -primary">
<% @user ||= User.new %>
<%= render partial: '/account/register' %>
</section>
diff --git a/app/views/account/consent.html.erb b/app/views/account/consent.html.erb
index 6a5548fa882..854a18edaae 100644
--- a/app/views/account/consent.html.erb
+++ b/app/views/account/consent.html.erb
@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= form_tag(account_confirm_consent_path, method: :post, class: "form -wide-labels") do %>
<%= render partial: 'user_consent_check' %>
<section class="form--section">
- <button type="submit" class="button -highlight">
+ <button type="submit" class="button -primary">
<span class="button--text"><%= t(:button_continue) %></span>
</button>
<%= link_to t(:button_decline), account_decline_consent_path, class: 'button' %>
diff --git a/app/views/account/lost_password.html.erb b/app/views/account/lost_password.html.erb
index c73cf0736a5..876a98d21c0 100644
--- a/app/views/account/lost_password.html.erb
+++ b/app/views/account/lost_password.html.erb
@@ -36,6 +36,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= styled_text_field_tag 'mail', nil, size: 40, container_class: '-middle' %>
</span>
</div>
- <%= styled_button_tag t(:button_submit), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_submit), class: '-primary -with-icon icon-checkmark' %>
<% end %>
</section>
diff --git a/app/views/account/password_recovery.html.erb b/app/views/account/password_recovery.html.erb
index 2dabec0e329..e2caa6d63f9 100644
--- a/app/views/account/password_recovery.html.erb
+++ b/app/views/account/password_recovery.html.erb
@@ -48,5 +48,5 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
</section>
- <p><%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %></p>
+ <p><%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %></p>
<% end %>
diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb
index 4e570b8f8e8..f124715ef1a 100644
--- a/app/views/account/register.html.erb
+++ b/app/views/account/register.html.erb
@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<section data-augmented-model-wrapper
data-modal-initialize-now="true"
- data-modal-class-name="registration-modal -highlight">
+ data-modal-class-name="registration-modal -primary">
<% @user ||= User.new %>
<%= render partial: '/account/register' %>
</section>
diff --git a/app/views/activities/menu.html.erb b/app/views/activities/menu.html.erb
index 1da1d1d78ef..7d53b57a0a9 100644
--- a/app/views/activities/menu.html.erb
+++ b/app/views/activities/menu.html.erb
@@ -27,7 +27,7 @@
<%= hidden_field_tag('user_id', params[:user_id]) if params[:user_id].present? %>
<%= hidden_field_tag('from', params[:from]) if params[:from].present? %>
<p><%= submit_tag t(:button_apply),
- class: 'button -small -highlight',
+ class: 'button -small -primary',
name: nil %></p>
</fieldset>
<% end %>
diff --git a/app/views/admin/backups/reset_token.html.erb b/app/views/admin/backups/reset_token.html.erb
index 2abc3be990a..91b8977b3af 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.
</p>
<div class="danger-zone--verification">
<input type="text" name="login_verification"/>
- <%= 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 071e15aea84..c17f8d8a0ff 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 dbd45c84e3f..2e7fc0b2b36 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.
</span>
</div>
- <%= 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 c2b2a97efe5..046c3dd5cc3 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.
</div>
</div>
</section>
- <%= 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 d4b4570fc11..2b4cac263e6 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.
</div>
</div>
</section>
- <%= 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 a64f210f8f1..afe95a411be 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' %>
</div>
<% 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 9f3e79b44e4..f4be58a351c 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.
</section>
- <%= 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 4ce41f32a1e..99fb53c6018 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.
</fieldset>
</section>
<%= 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 0c0aac2d1f5..9c5bd2ca856 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.
<div class="form--field"><%= setting_check_box :welcome_on_homescreen %></div>
</fieldset>
</section>
- <%= 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 518f84d4193..238c654a051 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.
</div>
</section>
- <%= 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 779cb84a904..690ea3f3a51 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.
</div>
</section>
- <%= 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 9646f9f00f6..5d7f1de8e97 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.
</section>
<%= 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 d7851ff2068..ecf4e2ad6af 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.
</div>
<% 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 %>
<div style="float:none;display:inline-block;font-weight:bold;">
diff --git a/app/views/admin/settings/projects_settings/show.html.erb b/app/views/admin/settings/projects_settings/show.html.erb
index 7aa2f0dbd84..b81e0a93a2d 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.
</fieldset>
</section>
- <%= 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 b6c6cdf0ef7..ae0b5f90747 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' %></div>
</fieldset>
- <%= 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 c1bc5975309..a71d7bb630f 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.
<div id="settings">
<%= styled_form_tag({controller: '/admin/settings', action: 'update_plugin' }) do %>
<%= render partial: @partial, locals: {settings: @settings}%>
- <%= styled_submit_tag t(:button_apply), class: '-highlight' %>
+ <%= styled_submit_tag t(:button_apply), class: '-primary' %>
<% end %>
</div>
diff --git a/app/views/admin/settings/users_settings/show.html.erb b/app/views/admin/settings/users_settings/show.html.erb
index cb0faf1d467..28359cedad8 100644
--- a/app/views/admin/settings/users_settings/show.html.erb
+++ b/app/views/admin/settings/users_settings/show.html.erb
@@ -105,5 +105,5 @@ See COPYRIGHT and LICENSE files for more details.
</span>
</div>
</fieldset>
- <%= 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/virus_scanning_settings/show.html.erb b/app/views/admin/settings/virus_scanning_settings/show.html.erb
index b177363e74b..15a4fc77c6b 100644
--- a/app/views/admin/settings/virus_scanning_settings/show.html.erb
+++ b/app/views/admin/settings/virus_scanning_settings/show.html.erb
@@ -65,5 +65,5 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<%= render partial: 'av_form', locals: { selected: Setting.antivirus_scan_mode } %>
- <%= 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/work_packages_settings/show.html.erb b/app/views/admin/settings/work_packages_settings/show.html.erb
index 6ffc38f88cc..a0826dff7ea 100644
--- a/app/views/admin/settings/work_packages_settings/show.html.erb
+++ b/app/views/admin/settings/work_packages_settings/show.html.erb
@@ -58,7 +58,7 @@ See COPYRIGHT and LICENSE files for more details.
} %>
</div>
<% if EnterpriseToken.allows_to? :conditional_highlighting %>
- <div class="form--field -indented -vertical settings--highlighted-attributes" style="<%= 'display: none' unless Setting[:work_package_list_default_highlighting_mode] == 'inline' %>">
+ <div class="form--field -indented -vertical settings--primaryed-attributes" style="<%= 'display: none' unless Setting[:work_package_list_default_highlighting_mode] == 'inline' %>">
<%= setting_multiselect :work_package_list_default_highlighted_attributes,
Query.available_columns(nil).select(&:highlightable).map { |column|
[column.caption, column.name.to_s]
@@ -92,5 +92,5 @@ See COPYRIGHT and LICENSE files for more details.
</fieldset>
</section>
- <%= 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/working_days_settings/show.html.erb b/app/views/admin/settings/working_days_settings/show.html.erb
index 3570e95a936..da9d61f9fc0 100644
--- a/app/views/admin/settings/working_days_settings/show.html.erb
+++ b/app/views/admin/settings/working_days_settings/show.html.erb
@@ -76,5 +76,5 @@ See COPYRIGHT and LICENSE files for more details.
- <%= styled_button_tag t(:button_apply_changes), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_apply_changes), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/announcements/edit.html.erb b/app/views/announcements/edit.html.erb
index 012037a6637..4874f6e0470 100644
--- a/app/views/announcements/edit.html.erb
+++ b/app/views/announcements/edit.html.erb
@@ -22,5 +22,5 @@
<%= f.check_box :active, label: t(:label_active) %>
</div>
<hr class="form-separator">
- <%= 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/attribute_help_texts/edit.html.erb b/app/views/attribute_help_texts/edit.html.erb
index e990266c51b..5569709c0b0 100644
--- a/app/views/attribute_help_texts/edit.html.erb
+++ b/app/views/attribute_help_texts/edit.html.erb
@@ -38,5 +38,5 @@ See COPYRIGHT and LICENSE files for more details.
html: {id: 'attribute_help_text_form'} do |f| %>
<%= render partial: 'form', locals: { f: f, editing: true } %>
<%= hidden_field_tag 'attribute_scope', @attribute_help_text.attribute_scope %>
- <%= 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/attribute_help_texts/index.html.erb b/app/views/attribute_help_texts/index.html.erb
index f28ea039695..4964519968c 100644
--- a/app/views/attribute_help_texts/index.html.erb
+++ b/app/views/attribute_help_texts/index.html.erb
@@ -46,7 +46,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:'attribute_help_texts.label_plural') do %>
<li class="toolbar-item">
<%= link_to new_attribute_help_text_path(name: selected_tab(tabs)[:name]),
- { class: 'attribute-help-texts--create-button button -alt-highlight',
+ { class: 'attribute-help-texts--create-button button -primary',
aria: {label: t(:'attribute_help_texts.add_new')},
title: t(:'attribute_help_texts.add_new')} do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/attribute_help_texts/new.html.erb b/app/views/attribute_help_texts/new.html.erb
index 03a17460fb4..32e6d3cf905 100644
--- a/app/views/attribute_help_texts/new.html.erb
+++ b/app/views/attribute_help_texts/new.html.erb
@@ -38,5 +38,5 @@ See COPYRIGHT and LICENSE files for more details.
html: {id: 'attribute_help_text_form'} do |f| %>
<%= render partial: 'form', locals: { f: f } %>
<%= f.hidden_field :type, value: @attribute_help_text.type %>
- <%= 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/categories/destroy.html.erb b/app/views/categories/destroy.html.erb
index 62ba944e437..3c95064abc9 100644
--- a/app/views/categories/destroy.html.erb
+++ b/app/views/categories/destroy.html.erb
@@ -48,6 +48,6 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% end %>
- <%= submit_tag t(:button_apply), class: 'button -highlight' %>
+ <%= submit_tag t(:button_apply), class: 'button -primary' %>
<%= link_to t(:button_cancel), project_settings_categories_path(@project), class: 'button' %>
<% end %>
diff --git a/app/views/categories/edit.html.erb b/app/views/categories/edit.html.erb
index ad6e532836a..6cbc6aff498 100644
--- a/app/views/categories/edit.html.erb
+++ b/app/views/categories/edit.html.erb
@@ -29,5 +29,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: Category.model_name.human %>
<%= labelled_tabular_form_for @category, as: :category do |f| %>
<%= render partial: 'categories/form', locals: { f: f } %>
- <%= f.button t(:button_save), class: 'button -highlight -with-icon icon-checkmark' %>
+ <%= f.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/categories/new.html.erb b/app/views/categories/new.html.erb
index aaa02e7a9f0..683d5d4f82d 100644
--- a/app/views/categories/new.html.erb
+++ b/app/views/categories/new.html.erb
@@ -29,5 +29,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_work_package_category_new) %>
<%= labelled_tabular_form_for [@project, @category], as: :category do |f| %>
<%= render partial: 'categories/form', locals: { f: f } %>
- <%= f.button t(:button_create), class: 'button -highlight -with-icon icon-checkmark' %>
+ <%= f.button t(:button_create), class: 'button -primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/colors/_form.html.erb b/app/views/colors/_form.html.erb
index 3d4cb7ae788..182c71e2697 100644
--- a/app/views/colors/_form.html.erb
+++ b/app/views/colors/_form.html.erb
@@ -64,5 +64,5 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</fieldset>
-<%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+<%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), colors_path, class: 'button -with-icon icon-cancel' %>
diff --git a/app/views/colors/confirm_destroy.html.erb b/app/views/colors/confirm_destroy.html.erb
index e66e15b680b..d61560857c9 100644
--- a/app/views/colors/confirm_destroy.html.erb
+++ b/app/views/colors/confirm_destroy.html.erb
@@ -47,6 +47,6 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</fieldset>
- <%= submit_tag t(:button_delete), class: 'button -highlight' %>
+ <%= submit_tag t(:button_delete), class: 'button -primary' %>
<%= link_to t(:button_cancel), colors_path, class: 'button' %>
<% end %>
diff --git a/app/views/colors/index.html.erb b/app/views/colors/index.html.erb
index 06dee2929b6..9ab59984631 100644
--- a/app/views/colors/index.html.erb
+++ b/app/views/colors/index.html.erb
@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_color_plural) do %>
<li class="toolbar-item">
<%= link_to new_color_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t('.label_new_color')},
title: t('.label_new_color')} do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/common/upsale.html.erb b/app/views/common/upsale.html.erb
index 956dae8ecbf..503f19ece9d 100644
--- a/app/views/common/upsale.html.erb
+++ b/app/views/common/upsale.html.erb
@@ -49,7 +49,7 @@
<% end %>
<%= link_to(OpenProject::Static::Links.links[:pricing][:href],
- { class: 'button -highlight',
+ { class: 'button -primary',
aria: {label: t('admin.enterprise.buttons.upgrade')},
target: '_blank',
title: t('admin.enterprise.buttons.upgrade')}) do %>
diff --git a/app/views/custom_actions/edit.html.erb b/app/views/custom_actions/edit.html.erb
index cc30bcac8f8..8497d6473bb 100644
--- a/app/views/custom_actions/edit.html.erb
+++ b/app/views/custom_actions/edit.html.erb
@@ -36,5 +36,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @custom_action 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/custom_actions/index.html.erb b/app/views/custom_actions/index.html.erb
index 102406b6f62..198a980abfd 100644
--- a/app/views/custom_actions/index.html.erb
+++ b/app/views/custom_actions/index.html.erb
@@ -2,7 +2,7 @@
<%= toolbar title: t('custom_actions.plural') do %>
<li class="toolbar-item">
<%= link_to new_custom_action_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: { label: t('custom_actions.new') },
title: t('custom_actions.new') } do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/custom_actions/new.html.erb b/app/views/custom_actions/new.html.erb
index a0111056ccc..a836500870e 100644
--- a/app/views/custom_actions/new.html.erb
+++ b/app/views/custom_actions/new.html.erb
@@ -36,5 +36,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @custom_action do |f| %>
<%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/custom_fields/edit.html.erb b/app/views/custom_fields/edit.html.erb
index 563354707b1..9281171675d 100644
--- a/app/views/custom_fields/edit.html.erb
+++ b/app/views/custom_fields/edit.html.erb
@@ -44,5 +44,5 @@ See COPYRIGHT and LICENSE files for more details.
url: custom_field_path(@custom_field),
html: {method: :put, id: 'custom_field_form'} 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/custom_fields/index.html.erb b/app/views/custom_fields/index.html.erb
index 0466c66b52a..8b87fbce343 100644
--- a/app/views/custom_fields/index.html.erb
+++ b/app/views/custom_fields/index.html.erb
@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_custom_field_plural) do %>
<li class="toolbar-item">
<%= link_to new_custom_field_path(type: selected_tab(custom_fields_tabs)[:name]),
- { 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') %>
diff --git a/app/views/custom_fields/new.html.erb b/app/views/custom_fields/new.html.erb
index 7bfb0bae823..38820445911 100644
--- a/app/views/custom_fields/new.html.erb
+++ b/app/views/custom_fields/new.html.erb
@@ -43,5 +43,5 @@ See COPYRIGHT and LICENSE files for more details.
html: {id: 'custom_field_form', class: "-wide-labels"} do |f| %>
<%= render partial: 'form', locals: { f: f } %>
<%= hidden_field_tag 'type', @custom_field.type %>
- <%= 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/custom_styles/_inline_css.erb b/app/views/custom_styles/_inline_css.erb
index b34edc822ea..94c8c12dde5 100644
--- a/app/views/custom_styles/_inline_css.erb
+++ b/app/views/custom_styles/_inline_css.erb
@@ -38,7 +38,7 @@ See COPYRIGHT and LICENSE files for more details.
--main-menu-border-width: 1px;
<% end %>
<% if design_color.variable == "primary-button-color" %>
- --button--alt-highlight-background-hover-color: <%= design_color.darken 0.18 %>;
+ --primary-button-color--major1: <%= design_color.darken 0.18 %>;
<% end %>
<% if design_color.variable == "primary-color" %>
--primary-color--minor1: <%= design_color.lighten 0.3 %>;
diff --git a/app/views/custom_styles/_primer_color_mapping.erb b/app/views/custom_styles/_primer_color_mapping.erb
index 89daaa329e8..c228d3b8b49 100644
--- a/app/views/custom_styles/_primer_color_mapping.erb
+++ b/app/views/custom_styles/_primer_color_mapping.erb
@@ -9,8 +9,8 @@
configured design outside of high contrast mode */
[data-color-mode]:not([data-light-theme=light_high_contrast]) {
--color-accent-fg: var(--content-link-color) !important;
- --button-primary-bgColor-rest: var(--button--alt-highlight-background-color); !important;
- --button-primary-bgColor-hover: var(--button--alt-highlight-background-hover-color) !important;
+ --button-primary-bgColor-rest: var(--button--primary-background-color); !important;
+ --button-primary-bgColor-hover: var(--button--primary-background-hover-color) !important;
}
[data-light-theme=light_high_contrast]{
--avatar-border-color: var(--color-avatar-border);
@@ -41,13 +41,11 @@
--main-menu-fieldset-header-color: var(--color-fg-subtle) !important;
--main-menu-border-width: 1px;
--button--border-color: var(--color-border-default);
- --button--alt-highlight-background-hover-color: var(--color-btn-primary-hover-bg);
- --button--alt-highlight-background-color: var(--color-btn-primary-bg);
+ --button--primary-background-hover-color: var(--color-btn-primary-hover-bg);
+ --button--primary-background-color: var(--color-btn-primary-bg);
--button--active-border-color: var(--color-border-default);
--button--background-hover-color: var(--color-btn-hover-bg);
--button--background-color: var(--color-btn-bg);
- --button--highlight-background-color: var(--color-btn-primary-bg);
- --button--highlight-background-hover-color: var(--color-btn-primary-hover-bg);
--content-link-color: var(--color-accent-fg);
--primary-button-color: var(--color-btn-primary-bg);
--status-selector-border-color: var(--button--border-color);
diff --git a/app/views/doorkeeper/authorizations/new.html.erb b/app/views/doorkeeper/authorizations/new.html.erb
index e8cb1f739c1..4b9ec3090f7 100644
--- a/app/views/doorkeeper/authorizations/new.html.erb
+++ b/app/views/doorkeeper/authorizations/new.html.erb
@@ -34,7 +34,7 @@
<%= hidden_field_tag :scope, @pre_auth.scope %>
<%= hidden_field_tag :code_challenge, @pre_auth.code_challenge %>
<%= hidden_field_tag :code_challenge_method, @pre_auth.code_challenge_method %>
- <%= submit_tag t('oauth.authorization_dialog.authorize'), class: "button -highlight -expand" %>
+ <%= submit_tag t('oauth.authorization_dialog.authorize'), class: "button -primary -expand" %>
<% end %>
<br/>
<%= form_tag oauth_authorization_path, method: :delete do %>
diff --git a/app/views/enterprises/_form.html.erb b/app/views/enterprises/_form.html.erb
index 087ea215e4d..2da2486690f 100644
--- a/app/views/enterprises/_form.html.erb
+++ b/app/views/enterprises/_form.html.erb
@@ -19,7 +19,7 @@
spellcheck: false %>
<div class="form--space"></div>
- <%= styled_button_tag t(:button_save), id: 'token-submit-button', class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), id: 'token-submit-button', class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), { action: :show }, class: 'button -with-icon icon-cancel' %>
<% end %>
<% end %>
diff --git a/app/views/enumerations/destroy.html.erb b/app/views/enumerations/destroy.html.erb
index 587b6a1291a..a7c8958518d 100644
--- a/app/views/enumerations/destroy.html.erb
+++ b/app/views/enumerations/destroy.html.erb
@@ -37,7 +37,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
</section>
- <%= styled_submit_tag t(:button_apply), class: '-highlight' %>
+ <%= styled_submit_tag t(:button_apply), class: '-primary' %>
<%= link_to t(:button_cancel), { controller: '/enumerations', action: 'index' },
class: 'button' %>
<% end %>
diff --git a/app/views/enumerations/edit.html.erb b/app/views/enumerations/edit.html.erb
index 2b23d1887b8..ade18a3f67b 100644
--- a/app/views/enumerations/edit.html.erb
+++ b/app/views/enumerations/edit.html.erb
@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @enumeration 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 %>
<%= styled_form_tag(enumeration_path(@enumeration), method: :delete) do %>
diff --git a/app/views/enumerations/new.html.erb b/app/views/enumerations/new.html.erb
index 324203a1f22..0f919ce7ee4 100644
--- a/app/views/enumerations/new.html.erb
+++ b/app/views/enumerations/new.html.erb
@@ -32,5 +32,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= breadcrumb_toolbar t(:label_enumeration_new) %>
<%= labelled_tabular_form_for @enumeration do |f| %>
<%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/forums/edit.html.erb b/app/views/forums/edit.html.erb
index 58cdd8a9004..59d724ea669 100644
--- a/app/views/forums/edit.html.erb
+++ b/app/views/forums/edit.html.erb
@@ -30,6 +30,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for [@project, @forum] do |f| %>
<%= render partial: 'form', locals: { f: f } %>
- <%= f.button t(:button_save), class: 'button -highlight -with-icon icon-checkmark' %>
+ <%= f.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), project_forums_path(@project), class: 'button -with-icon icon-cancel' %>
<% end %>
diff --git a/app/views/forums/index.html.erb b/app/views/forums/index.html.erb
index d3add7f3a47..2f0d761762a 100644
--- a/app/views/forums/index.html.erb
+++ b/app/views/forums/index.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= link_to(new_project_forum_path(@project),
{ aria: { label: t(:label_forum_new) },
title: t(:label_forum_new),
- class: 'button -alt-highlight' }) do %>
+ class: 'button -primary' }) do %>
<%= op_icon('button--icon icon-add') %>
<span class="button--text"><%= t('activerecord.models.forum') %></span>
<% end %>
diff --git a/app/views/forums/new.html.erb b/app/views/forums/new.html.erb
index b46a46476b5..c17d6bc30a7 100644
--- a/app/views/forums/new.html.erb
+++ b/app/views/forums/new.html.erb
@@ -31,6 +31,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for [@project, @forum] do |f| %>
<%= render partial: 'form', locals: {f: f} %>
- <%= f.button t(:button_create), class: 'button -highlight -with-icon icon-checkmark' %>
+ <%= f.button t(:button_create), class: 'button -primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), project_forums_path(@project), class: 'button -with-icon icon-cancel' %>
<% end %>
diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb
index eed48f95f43..cc113628757 100644
--- a/app/views/forums/show.html.erb
+++ b/app/views/forums/show.html.erb
@@ -38,7 +38,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: 'messages/form', locals: {f: f} %>
<hr class="form--separator"/>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), '', class: 'cancel-add-message-button button -with-icon icon-cancel' %>
<% csp_onclick('jQuery("#add-message").hide();', '.cancel-add-message-button') %>
<% end %>
@@ -50,7 +50,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if authorize_for(:messages, :new) %>
<li class="toolbar-item">
<%= link_to({controller: '/messages', action: 'new', forum_id: @forum},
- {class: 'add-message-button button -alt-highlight',
+ {class: 'add-message-button button -primary',
aria: {label: t(:label_message_new)},
title: t(:label_message_new)}) do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/groups/_general.html.erb b/app/views/groups/_general.html.erb
index 597256d4f5c..06238c28cab 100644
--- a/app/views/groups/_general.html.erb
+++ b/app/views/groups/_general.html.erb
@@ -29,5 +29,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @group, url: group_path(@group), html: {method: :put}, as: :group 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/groups/_memberships.html.erb b/app/views/groups/_memberships.html.erb
index cbb4dd06203..03364ee2adc 100644
--- a/app/views/groups/_memberships.html.erb
+++ b/app/views/groups/_memberships.html.erb
@@ -95,7 +95,7 @@ See COPYRIGHT and LICENSE files for more details.
</label>
<% end %>
<p class="generic-table--cell-controls">
- <%= submit_tag t(:button_change), class: 'button -highlight -small' %>
+ <%= submit_tag t(:button_change), class: 'button -primary -small' %>
<%= link_to_function t(:button_cancel), "jQuery('#member-#{membership.id}-roles').show(); jQuery('#member-#{membership.id}-roles-form').hide();",
class: 'button -small' %>
</p>
@@ -146,7 +146,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= labeled_check_box_tags 'membership[role_ids][]', roles %>
</div>
</div>
- <div><%= styled_button_tag t(:button_add), class: '-highlight -with-icon icon-checkmark' %></div>
+ <div><%= styled_button_tag t(:button_add), class: '-primary -with-icon icon-checkmark' %></div>
</fieldset>
<% end %>
<% end %>
diff --git a/app/views/groups/_users.html.erb b/app/views/groups/_users.html.erb
index 32fd094c0e8..cb511e6762d 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.
</div>
<div>
<%= styled_button_tag t(:button_add),
- class: '-highlight -with-icon icon-checkmark' %>
+ class: '-primary -with-icon icon-checkmark' %>
</div>
</fieldset>
<% end %>
diff --git a/app/views/groups/index.html.erb b/app/views/groups/index.html.erb
index 5a6c29f3135..e0894b0a991 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 %>
<li class="toolbar-item">
<%= 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 b4bbdf816a4..ef6c1e256e0 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 } %>
- <div><%= f.button t(:button_create), class: 'button -highlight -with-icon icon-checkmark' %></div>
+ <div><%= f.button t(:button_create), class: 'button -primary -with-icon icon-checkmark' %></div>
<% end %>
diff --git a/app/views/homescreen/blocks/_projects.html.erb b/app/views/homescreen/blocks/_projects.html.erb
index 59d6dc83d78..f8cfc7ebf32 100644
--- a/app/views/homescreen/blocks/_projects.html.erb
+++ b/app/views/homescreen/blocks/_projects.html.erb
@@ -19,7 +19,7 @@
<div class="widget-box--blocks--buttons">
<% if User.current.allowed_globally?(:add_project) %>
<%= link_to new_project_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t(:label_project_new)},
title: t(:label_project_new)} do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/homescreen/blocks/_upsale.html.erb b/app/views/homescreen/blocks/_upsale.html.erb
index 826cec5ced7..5acad4a2b83 100644
--- a/app/views/homescreen/blocks/_upsale.html.erb
+++ b/app/views/homescreen/blocks/_upsale.html.erb
@@ -30,7 +30,7 @@
<% end %>
<%= link_to(OpenProject::Static::Links.links[:pricing][:href],
- class: 'button -highlight',
+ class: 'button -primary',
target: '_blank',
rel: 'noopener') do %>
<%= spot_icon('enterprise-addons') %>
@@ -38,6 +38,6 @@
<% end %>
<% if current_user.admin? %>
- <%= link_to t('js.admin.enterprise.upsale.button_start_trial'), enterprise_path, class: 'button -alt-highlight' %>
+ <%= link_to t('js.admin.enterprise.upsale.button_start_trial'), enterprise_path, class: 'button -primary' %>
<% end %>
</div>
diff --git a/app/views/homescreen/blocks/_users.html.erb b/app/views/homescreen/blocks/_users.html.erb
index 26f040708c1..2bc2b31a58f 100644
--- a/app/views/homescreen/blocks/_users.html.erb
+++ b/app/views/homescreen/blocks/_users.html.erb
@@ -15,7 +15,7 @@
<div class="widget-box--buttons">
<% if User.current.admin? %>
- <%= link_to new_user_path, class: 'button -alt-highlight' do %>
+ <%= link_to new_user_path, class: 'button -primary' do %>
<%= op_icon('button--icon icon-add') %>
<span class="button--text"><%= t(:label_invite_user) %></span>
<% end %>
diff --git a/app/views/individual_principals/_memberships.html.erb b/app/views/individual_principals/_memberships.html.erb
index e931d16e618..ae758fff847 100644
--- a/app/views/individual_principals/_memberships.html.erb
+++ b/app/views/individual_principals/_memberships.html.erb
@@ -104,7 +104,7 @@ See COPYRIGHT and LICENSE files for more details.
</label>
<% end %>
</div>
- <p><%= submit_tag t(:button_change), class: 'memberships--edit-submit-button button -highlight -small' %>
+ <p><%= submit_tag t(:button_change), class: 'memberships--edit-submit-button button -primary -small' %>
<%= link_to_function t(:button_cancel),
"jQuery('.member-#{membership.id}--edit-toggle-item').toggle();",
class: 'button -small' %></p>
@@ -164,7 +164,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= labeled_check_box_tags 'membership[role_ids][]', roles %>
</div>
</div>
- <div><%= styled_button_tag t(:button_add), class: '-highlight -with-icon icon-checkmark' %></div>
+ <div><%= styled_button_tag t(:button_add), class: '-primary -with-icon icon-checkmark' %></div>
</fieldset>
<% end %>
<% end %>
diff --git a/app/views/ldap_auth_sources/edit.html.erb b/app/views/ldap_auth_sources/edit.html.erb
index 2751fdb4cc2..11c9bd88faa 100644
--- a/app/views/ldap_auth_sources/edit.html.erb
+++ b/app/views/ldap_auth_sources/edit.html.erb
@@ -34,6 +34,6 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @ldap_auth_source do |f| %>
<%= render partial: 'form', locals: { f: f } %>
<% unless @ldap_auth_source.seeded_from_env? %>
- <%= 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 %>
<% end %>
diff --git a/app/views/ldap_auth_sources/index.html.erb b/app/views/ldap_auth_sources/index.html.erb
index 6e4495f8bee..cf2501c8cf5 100644
--- a/app/views/ldap_auth_sources/index.html.erb
+++ b/app/views/ldap_auth_sources/index.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_ldap_auth_source_plural) do %>
<li class="toolbar-item">
<%= link_to({ action: 'new' },
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t(:label_ldap_auth_source_new)},
title: t(:label_ldap_auth_source_new)}) do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/ldap_auth_sources/new.html.erb b/app/views/ldap_auth_sources/new.html.erb
index b16c9cb4057..9440a214ac0 100644
--- a/app/views/ldap_auth_sources/new.html.erb
+++ b/app/views/ldap_auth_sources/new.html.erb
@@ -33,5 +33,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @ldap_auth_source, as: :ldap_auth_source do |f| %>
<%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/members/_autocomplete_for_member.html.erb b/app/views/members/_autocomplete_for_member.html.erb
index 6152432580a..7b1dd229b00 100644
--- a/app/views/members/_autocomplete_for_member.html.erb
+++ b/app/views/members/_autocomplete_for_member.html.erb
@@ -64,6 +64,6 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<%= styled_button_tag t(:button_add),
id: 'member-add-submit',
- class: 'button -highlight -with-icon icon-checkmark',
+ class: 'button -primary -with-icon icon-checkmark',
style: roles.any? && (principals.any? && principals.size <= 20) ? "": "display:none" %>
<%= link_to I18n.t('button_cancel'), '', class: 'button -with-icon icon-cancel hide-member-form-button', role: 'button' %>
diff --git a/app/views/members/_member_form.html.erb b/app/views/members/_member_form.html.erb
index 53f64796c64..4831a713839 100644
--- a/app/views/members/_member_form.html.erb
+++ b/app/views/members/_member_form.html.erb
@@ -94,7 +94,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div id="member-add-submit-button--container">
<%= f.button t(:button_add),
- class: 'button -highlight -with-icon icon-checkmark',
+ class: 'button -primary -with-icon icon-checkmark',
id: 'add-member--submit-button' %>
</div>
</div>
diff --git a/app/views/messages/edit.html.erb b/app/views/messages/edit.html.erb
index b5ceb199712..887edb8f319 100644
--- a/app/views/messages/edit.html.erb
+++ b/app/views/messages/edit.html.erb
@@ -39,7 +39,7 @@ See COPYRIGHT and LICENSE files for more details.
<hr class="form--separator" />
- <%= f.button t(:button_save), class: 'button -highlight -with-icon icon-checkmark' %>
+ <%= f.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), topic_path(@message), class: 'button -with-icon icon-cancel' %>
<% end %>
<div id="preview"></div>
diff --git a/app/views/messages/new.html.erb b/app/views/messages/new.html.erb
index c28a1623eb8..c46bfac6ed8 100644
--- a/app/views/messages/new.html.erb
+++ b/app/views/messages/new.html.erb
@@ -38,7 +38,7 @@ See COPYRIGHT and LICENSE files for more details.
<hr class="form--separator" />
- <%= f.button t(:button_create), class: 'button -highlight -with-icon icon-checkmark' %>
+ <%= f.button t(:button_create), class: 'button -primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), project_forum_path(@project, @forum), class: 'button -with-icon icon-cancel' %>
<% end %>
diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb
index 1d8957ab75d..885cd475b28 100644
--- a/app/views/messages/show.html.erb
+++ b/app/views/messages/show.html.erb
@@ -145,7 +145,7 @@ See COPYRIGHT and LICENSE files for more details.
<hr class="form--separator"/>
- <%= f.button t(:button_submit), class: 'button -highlight -highlight -with-icon icon-checkmark' %>
+ <%= f.button t(:button_submit), class: 'button -primary -primary -with-icon icon-checkmark' %>
<% end %>
<div id="preview"></div>
</div>
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index ab609a78f43..f2b085b28a2 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -73,5 +73,5 @@ See COPYRIGHT and LICENSE files for more details.
locals: { form: f, all_fields: true, only_required: false, input_size: '-middle' } %>
</section>
- <%= 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/my/password.html.erb b/app/views/my/password.html.erb
index f5c1057d333..9fd43c65af5 100644
--- a/app/views/my/password.html.erb
+++ b/app/views/my/password.html.erb
@@ -40,5 +40,5 @@ See COPYRIGHT and LICENSE files for more details.
locals: { show_user_name: !!(defined? show_user_name) ? show_user_name : nil,
input_size: :middle } %>
</section>
- <%= 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/my/settings.html.erb b/app/views/my/settings.html.erb
index b0d30f73ab6..39563fd12ef 100644
--- a/app/views/my/settings.html.erb
+++ b/app/views/my/settings.html.erb
@@ -41,5 +41,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: 'users/preferences', locals: { input_size: :middle } %>
</fieldset>
<%= call_hook(:view_my_settings, user: @user, form: 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/news/edit.html.erb b/app/views/news/edit.html.erb
index 75333d3ddcc..2ad405f686b 100644
--- a/app/views/news/edit.html.erb
+++ b/app/views/news/edit.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @news, html: { id: 'news-form' } do |f| %>
<%= render partial: 'form', locals: { f: f } %>
<hr class="form--separator" />
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), news_path(@news), class: 'button -with-icon icon-cancel' %>
<% end %>
<div id="preview"></div>
diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb
index 0b6000e1374..a0ddb1dfc77 100644
--- a/app/views/news/index.html.erb
+++ b/app/views/news/index.html.erb
@@ -35,7 +35,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if managable %>
<li class="toolbar-item">
<%= link_to new_project_news_path(@project),
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
id: 'new_news_link',
aria: {label: t(:label_news_new)},
title: t(:label_news_new)} do %>
diff --git a/app/views/news/new.html.erb b/app/views/news/new.html.erb
index 4153de7dd07..a9e0ee02f28 100644
--- a/app/views/news/new.html.erb
+++ b/app/views/news/new.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for [@project, @news], html: { id: 'news-form' } do |f| %>
<%= render partial: 'news/form', locals: { f: f } %>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), project_news_index_path(@project), class: 'button -with-icon icon-cancel' %>
<% end %>
<div id="preview"></div>
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb
index 4514b93ca7e..dda0aad9e40 100644
--- a/app/views/news/show.html.erb
+++ b/app/views/news/show.html.erb
@@ -59,7 +59,7 @@ See COPYRIGHT and LICENSE files for more details.
<div id="edit-news" style="display:none;">
<%= labelled_tabular_form_for @news, html: { id: 'news-form' } 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' %>
<%= link_to_function t(:button_cancel), 'jQuery("#edit-news").hide()', class: 'button -with-icon icon-cancel'%>
<% end %>
</div>
@@ -103,7 +103,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= wikitoolbar_for 'comment_comments', preview_context: preview_context(@news) %>
</div>
<p>
- <%= submit_tag t(:button_add_comment), class: 'button -highlight' %>
+ <%= submit_tag t(:button_add_comment), class: 'button -primary' %>
</p>
<% end %>
<% end %>
diff --git a/app/views/oauth/applications/edit.html.erb b/app/views/oauth/applications/edit.html.erb
index c56fe48382e..db35803c9ad 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 } %>
<p>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
</p>
<% end %>
diff --git a/app/views/oauth/applications/index.html.erb b/app/views/oauth/applications/index.html.erb
index 47cb78921c1..20f3c4c732c 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 %>
<li class="toolbar-item">
<%= 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') %>
<span class="button--text"><%= t(:button_add) %></span>
diff --git a/app/views/oauth/applications/new.html.erb b/app/views/oauth/applications/new.html.erb
index 1ee51f8ec9f..c208d363ebc 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 } %>
<p>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
</p>
<% end %>
diff --git a/app/views/onboarding/_configuration_modal.html.erb b/app/views/onboarding/_configuration_modal.html.erb
index 5ccd69bb4a5..fd68e8b055a 100644
--- a/app/views/onboarding/_configuration_modal.html.erb
+++ b/app/views/onboarding/_configuration_modal.html.erb
@@ -52,7 +52,7 @@ See COPYRIGHT and LICENSE files for more details.
dynamic-content-modal-close-button
title=<%= t(:button_close) %>
><%= t(:button_close) %></button>
- <%= styled_button_tag t(:button_save), class: 'button_no-margin -highlight -with-icon icon-checkmark spot-action-bar--action' %>
+ <%= styled_button_tag t(:button_save), class: 'button_no-margin -primary -with-icon icon-checkmark spot-action-bar--action' %>
</div>
</div>
<% end %>
diff --git a/app/views/placeholder_users/_general.html.erb b/app/views/placeholder_users/_general.html.erb
index bafa6138d06..2a46d38c7c9 100644
--- a/app/views/placeholder_users/_general.html.erb
+++ b/app/views/placeholder_users/_general.html.erb
@@ -36,5 +36,5 @@ See COPYRIGHT and LICENSE files for more details.
as: :placeholder_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/placeholder_users/deletion_info.html.erb b/app/views/placeholder_users/deletion_info.html.erb
index f21bd7365b5..bd1ff038554 100644
--- a/app/views/placeholder_users/deletion_info.html.erb
+++ b/app/views/placeholder_users/deletion_info.html.erb
@@ -58,7 +58,7 @@ See COPYRIGHT and LICENSE files for more details.
</p>
<div class="danger-zone--verification">
<input type="text" name="name_verification"/>
- <%= 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/placeholder_users/index.html.erb b/app/views/placeholder_users/index.html.erb
index 6e3b83a1cc9..541b8a89ab7 100644
--- a/app/views/placeholder_users/index.html.erb
+++ b/app/views/placeholder_users/index.html.erb
@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_placeholder_user_plural), title_class: 'no-padding-bottom' do %>
<li class="toolbar-item">
<%= link_to new_placeholder_user_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: { label: t(:label_placeholder_user_new) },
title: t(:label_placeholder_user_new) } do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/placeholder_users/new.html.erb b/app/views/placeholder_users/new.html.erb
index 8d0a09cd206..b8f1a4e4dff 100644
--- a/app/views/placeholder_users/new.html.erb
+++ b/app/views/placeholder_users/new.html.erb
@@ -38,7 +38,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: 'form', locals: { f: f, placeholder_user: @placeholder_user } %>
<p>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
- <%= styled_button_tag t(:button_create_and_continue), name: 'continue', class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create_and_continue), name: 'continue', class: '-primary -with-icon icon-checkmark' %>
</p>
<% end %>
diff --git a/app/views/projects/_toolbar.html.erb b/app/views/projects/_toolbar.html.erb
index 49fba78032e..d31df7c88e3 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) %>
<li class="toolbar-item">
<%= 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 4f5191b94d2..b1b8adbb862 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.
</p>
<div class="danger-zone--verification">
<input type="text">
- <%= 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 ff4b7ecabe6..7c59b32a8ec 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.
<div class="danger-zone--verification">
<%= f.text_field :identifier %>
<span>
- <%= f.submit t(:button_update), class: 'button -highlight -with-icon icon-checkmark' %>
+ <%= f.submit t(:button_update), class: 'button -primary -with-icon icon-checkmark' %>
</span>
<span>
<%= link_to project_settings_general_path(@project), class: 'button' do %>
- <%= op_icon('button--icon icon-cancel') %>
+ <%= op_icon('button--icon icon-cancel') %>
<span class="button--text"><%= t(:button_cancel) %></span>
<% end %>
</span>
diff --git a/app/views/projects/settings/categories/show.html.erb b/app/views/projects/settings/categories/show.html.erb
index 69d2edca921..be486d0a4c8 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') %>
<span class="button--text"><%= t('activerecord.models.category') %></span>
<% end %>
diff --git a/app/views/projects/settings/custom_fields/show.html.erb b/app/views/projects/settings/custom_fields/show.html.erb
index abe34a478c8..6c8e10459d8 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? %>
<li class="toolbar-item -no-grow">
<%= 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.
} %>
<div class="generic-table--action-buttons">
- <%= form.button t(:button_save), class: 'button -highlight -with-icon icon-checkmark' %>
+ <%= form.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %>
</div>
<% end %>
<% else %>
diff --git a/app/views/projects/settings/modules/show.html.erb b/app/views/projects/settings/modules/show.html.erb
index 769130a8dac..817bb422b0d 100644
--- a/app/views/projects/settings/modules/show.html.erb
+++ b/app/views/projects/settings/modules/show.html.erb
@@ -39,5 +39,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: "form",
locals: { form: form } %>
- <p><%= form.button t(:button_save), class: 'button -highlight -with-icon icon-checkmark' %></p>
+ <p><%= form.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %></p>
<% end %>
diff --git a/app/views/projects/settings/repository/_submit.html.erb b/app/views/projects/settings/repository/_submit.html.erb
index 8e6d4a114d6..e7b640c461c 100644
--- a/app/views/projects/settings/repository/_submit.html.erb
+++ b/app/views/projects/settings/repository/_submit.html.erb
@@ -1,4 +1,4 @@
-<button type="submit" class="button -highlight">
+<button type="submit" class="button -primary">
<%= op_icon('button--icon icon-checkmark') %>
<span class="button--text">
<%= is_creation_form ? t(:button_create) : t(:button_save) %>
diff --git a/app/views/projects/settings/types/_form.html.erb b/app/views/projects/settings/types/_form.html.erb
index b753f390d07..fa127d46708 100644
--- a/app/views/projects/settings/types/_form.html.erb
+++ b/app/views/projects/settings/types/_form.html.erb
@@ -110,5 +110,5 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="generic-table--action-buttons">
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
</div>
diff --git a/app/views/projects/settings/versions/show.html.erb b/app/views/projects/settings/versions/show.html.erb
index 2cdf798b8c4..84c6f7498a9 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) %>
<li class="toolbar-item">
<%= 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 86291b1a6db..e583ab76cb0 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 -%>
</tbody>
</table>
-
+
</div>
</div>
<hr class="form--separator" />
<p>
- <%= 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 %>
<span class="button--text"><%= t(:button_cancel) %></span>
<% end %>
diff --git a/app/views/repositories/destroy_info.html.erb b/app/views/repositories/destroy_info.html.erb
index 090f2db5812..df9adc05c82 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') %>
<span class="button--text"><%= t(:button_delete) %></span>
<% end %>
@@ -93,4 +93,3 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<% end %>
-
diff --git a/app/views/repositories/revisions.html.erb b/app/views/repositories/revisions.html.erb
index f198ce94364..c3b608a0179 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) %>
</li>
<li class="toolbar-item">
- <%= submit_tag 'OK', class: 'button -highlight' %>
+ <%= submit_tag 'OK', class: 'button -primary' %>
</li>
<% end %>
<% end %>
diff --git a/app/views/roles/index.html.erb b/app/views/roles/index.html.erb
index 15b4b57c5eb..26d4fe75c5a 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 %>
<li class="toolbar-item">
<%= 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 1d74b0c708c..0be64fbdca8 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.
</fieldset>
<% end %>
- <p><%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %></p>
+ <p><%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %></p>
<% end %>
diff --git a/app/views/statuses/edit.html.erb b/app/views/statuses/edit.html.erb
index d5165dcbfa1..cfcdca7a027 100644
--- a/app/views/statuses/edit.html.erb
+++ b/app/views/statuses/edit.html.erb
@@ -33,5 +33,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for(@status) 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/statuses/index.html.erb b/app/views/statuses/index.html.erb
index 3c18dc2691a..359efef2da8 100644
--- a/app/views/statuses/index.html.erb
+++ b/app/views/statuses/index.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_work_package_status_plural) do %>
<li class="toolbar-item">
<%= link_to new_status_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t(:label_work_package_status_new)},
title: t(:label_work_package_status_new)} do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/statuses/new.html.erb b/app/views/statuses/new.html.erb
index bbf8a50f696..a33c1274f87 100644
--- a/app/views/statuses/new.html.erb
+++ b/app/views/statuses/new.html.erb
@@ -33,5 +33,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for(@status) do |f| %>
<%= render partial: 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/types/form/_form_configuration.html.erb b/app/views/types/form/_form_configuration.html.erb
index e7d671d58e7..4d458baaa42 100644
--- a/app/views/types/form/_form_configuration.html.erb
+++ b/app/views/types/form/_form_configuration.html.erb
@@ -71,6 +71,6 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--action-buttons">
<%= styled_button_tag t(@type.new_record? ? :button_create : :button_save),
data: { disable_with: t(@type.new_record? ? :button_create : :button_save) },
- class: 'form-configuration--save -highlight -with-icon icon-checkmark' %>
+ class: 'form-configuration--save -primary -with-icon icon-checkmark' %>
</div>
</div>
diff --git a/app/views/types/form/_projects.html.erb b/app/views/types/form/_projects.html.erb
index 1758232e7a5..db8349d0431 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.
<div class="grid-block">
<div class="generic-table--action-buttons">
<%= styled_button_tag t(@type.new_record? ? :button_create : :button_save),
- class: '-highlight -with-icon icon-checkmark' %>
+ class: '-primary -with-icon icon-checkmark' %>
</div>
</div>
diff --git a/app/views/types/form/_settings.html.erb b/app/views/types/form/_settings.html.erb
index 8a784ab50e3..1e170049953 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.
<div class="grid-block">
<div class="generic-table--action-buttons">
<%= styled_button_tag t(@type.new_record? ? :button_create : :button_save),
- class: '-highlight -with-icon icon-checkmark' %>
+ class: '-primary -with-icon icon-checkmark' %>
</div>
</div>
diff --git a/app/views/types/index.html.erb b/app/views/types/index.html.erb
index b0db4a085f3..d54eef893a9 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 %>
<li class="toolbar-item">
<%= 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 f8012733813..b818d5a8fb1 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 a0b2a46d6f9..63801b7a14a 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.
</section>
<hr class="form--separator" />
- <%= styled_button_tag '', class: '-highlight' do %>
+ <%= styled_button_tag '', class: '-primary' do %>
<%= op_icon('button--icon icon-checkmark') %>
<span class="button--text"><%= new_status %></span>
<% end %>
diff --git a/app/views/users/deletion_info.html.erb b/app/views/users/deletion_info.html.erb
index 4ba19e1e411..65d493bb966 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.
</p>
<div class="danger-zone--verification">
<input type="text" name="login_verification"/>
- <%= 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 d218a105666..0e5b25f666b 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) %>
&nbsp;
- <a href="<%= OpenProject::Enterprise.upgrade_path %>" class="display-inline button -tiny -highlight" title="<%= t(:title_enterprise_upgrade) %>"><%= t(:button_upgrade) %></a>
+ <a href="<%= OpenProject::Enterprise.upgrade_path %>" class="display-inline button -tiny -primary" title="<%= t(:title_enterprise_upgrade) %>"><%= t(:button_upgrade) %></a>
<% end %>
<%= toolbar title: t(:label_user_plural), title_class: 'no-padding-bottom', subtitle: users_info do %>
<li class="toolbar-item">
<%= link_to new_user_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: { label: t(:label_user_new) },
title: t(:label_user_new) } do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb
index e465e2152d5..09a6e9bba2e 100644
--- a/app/views/users/new.html.erb
+++ b/app/views/users/new.html.erb
@@ -46,7 +46,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: 'simple_form', locals: { f: f, auth_sources: @ldap_auth_sources, user: @user } %>
<p>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
- <%= styled_button_tag t(:button_create_and_continue), name: 'continue', class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create_and_continue), name: 'continue', class: '-primary -with-icon icon-checkmark' %>
</p>
<% end %>
diff --git a/app/views/versions/_roadmap_filter.html.erb b/app/views/versions/_roadmap_filter.html.erb
index 3dcf17f18cb..1c916e23c48 100644
--- a/app/views/versions/_roadmap_filter.html.erb
+++ b/app/views/versions/_roadmap_filter.html.erb
@@ -33,7 +33,7 @@
<div class="form--space"></div>
- <div><%= submit_tag t(:button_apply), class: 'button -small -alt-highlight', name: nil %></div>
+ <div><%= submit_tag t(:button_apply), class: 'button -small -primary', name: nil %></div>
</fieldset>
<% end %>
diff --git a/app/views/versions/edit.html.erb b/app/views/versions/edit.html.erb
index 051e25fbfb8..5dbc0a1bfde 100644
--- a/app/views/versions/edit.html.erb
+++ b/app/views/versions/edit.html.erb
@@ -35,5 +35,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: 'form', locals: { f: f,
project: @project } %>
- <%= 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/versions/index.html.erb b/app/views/versions/index.html.erb
index c47dc3bc1e6..a969a046db7 100644
--- a/app/views/versions/index.html.erb
+++ b/app/views/versions/index.html.erb
@@ -30,7 +30,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_roadmap) do %>
<li class="toolbar-item">
<%= 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/versions/new.html.erb b/app/views/versions/new.html.erb
index 80fb1b4467b..5a10dfe48db 100644
--- a/app/views/versions/new.html.erb
+++ b/app/views/versions/new.html.erb
@@ -35,5 +35,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: 'versions/form', locals: { f: f,
project: @project } %>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
<% end %>
diff --git a/app/views/wiki/_page_form.html.erb b/app/views/wiki/_page_form.html.erb
index c3211e91b5d..9b55008f36f 100644
--- a/app/views/wiki/_page_form.html.erb
+++ b/app/views/wiki/_page_form.html.erb
@@ -36,7 +36,7 @@
placeholder: t(:text_what_did_you_change_click_to_add_comment) %>
</div>
-<%= f.button t(:button_save), class: 'button -highlight -with-icon icon-checkmark' %>
+<%= f.button t(:button_save), class: 'button -primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel),
{ controller: '/wiki', action: 'show', project_id: @project, id: (@page.new_record? ? nil : @page) },
diff --git a/app/views/wiki/destroy.html.erb b/app/views/wiki/destroy.html.erb
index dad0c99bb91..280d92e2d61 100644
--- a/app/views/wiki/destroy.html.erb
+++ b/app/views/wiki/destroy.html.erb
@@ -59,7 +59,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% end %>
- <%= submit_tag t(:button_apply), class: 'button -highlight' %>
+ <%= submit_tag t(:button_apply), class: 'button -primary' %>
<%= link_to t(:button_cancel),
{ controller: '/wiki', action: 'show', project_id: @project, id: @page },
class: 'button' %>
diff --git a/app/views/wiki/edit_parent_page.html.erb b/app/views/wiki/edit_parent_page.html.erb
index b9549b8b74a..090661698a2 100644
--- a/app/views/wiki/edit_parent_page.html.erb
+++ b/app/views/wiki/edit_parent_page.html.erb
@@ -47,5 +47,5 @@ See COPYRIGHT and LICENSE files for more details.
}
));
<% end -%>
- <%= submit_tag t(:button_save), class: 'button -highlight' %>
+ <%= submit_tag t(:button_save), class: 'button -primary' %>
<% end %>
diff --git a/app/views/wiki/history.html.erb b/app/views/wiki/history.html.erb
index 081993f21bd..fb6f7e464be 100644
--- a/app/views/wiki/history.html.erb
+++ b/app/views/wiki/history.html.erb
@@ -159,7 +159,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<div class="generic-table--action-buttons">
- <%= submit_tag t(:label_view_diff), class: 'button -highlight -small' if show_diff %>
+ <%= submit_tag t(:label_view_diff), class: 'button -primary -small' if show_diff %>
</div>
<%= pagination_links_full @versions %>
<% end %>
diff --git a/app/views/wiki/rename.html.erb b/app/views/wiki/rename.html.erb
index 674597a208d..617f5e98e2c 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.
<div class='form--field'>
<%= f.check_box :redirect_existing_links %>
</div>
- <%= 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 e6fc7a40cf9..413d66c847c 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) %>
<li class="toolbar-item">
<%= 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 ee74b41bd28..8be0870396a 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.
</fieldset>
<p>
<%= styled_button_tag t(:button_save), method: :post,
- class: '-highlight -with-icon icon-checkmark' %>
+ class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel),
{controller: '/wiki', action: 'show', project_id: @project, id: @page_title},
class: 'button -with-icon icon-cancel'%>
diff --git a/app/views/wiki_menu_items/select_main_menu_item.html.erb b/app/views/wiki_menu_items/select_main_menu_item.html.erb
index 84f3f538eb3..9633769b0e8 100644
--- a/app/views/wiki_menu_items/select_main_menu_item.html.erb
+++ b/app/views/wiki_menu_items/select_main_menu_item.html.erb
@@ -41,5 +41,5 @@ See COPYRIGHT and LICENSE files for more details.
id: 'main-menu-item-select' } %>
</p>
</fieldset>
- <%= submit_tag t(:button_save), class: 'button -highlight' %>
+ <%= submit_tag t(:button_save), class: 'button -primary' %>
<% end %>
diff --git a/app/views/work_packages/bulk/destroy.html.erb b/app/views/work_packages/bulk/destroy.html.erb
index f829be42834..aa79633e206 100644
--- a/app/views/work_packages/bulk/destroy.html.erb
+++ b/app/views/work_packages/bulk/destroy.html.erb
@@ -80,7 +80,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% end %>
<div class="danger-zone--verification">
- <%= styled_button_tag title: t(:button_delete), class: '-highlight' do
+ <%= styled_button_tag title: t(:button_delete), class: '-primary' 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/work_packages/bulk/edit.html.erb b/app/views/work_packages/bulk/edit.html.erb
index 871a98d09f5..f1b4c9c099e 100644
--- a/app/views/work_packages/bulk/edit.html.erb
+++ b/app/views/work_packages/bulk/edit.html.erb
@@ -188,5 +188,5 @@ See COPYRIGHT and LICENSE files for more details.
<p><%= send_notification_option %></p>
</fieldset>
</section>
- <p><%= styled_button_tag t(:button_submit), class: '-highlight -with-icon icon-checkmark' %></p>
+ <p><%= styled_button_tag t(:button_submit), class: '-primary -with-icon icon-checkmark' %></p>
<% end %>
diff --git a/app/views/work_packages/moves/new.html.erb b/app/views/work_packages/moves/new.html.erb
index b8a64e40086..f1edbadcd24 100644
--- a/app/views/work_packages/moves/new.html.erb
+++ b/app/views/work_packages/moves/new.html.erb
@@ -184,11 +184,11 @@ See COPYRIGHT and LICENSE files for more details.
</section>
<% if @copy %>
<%= hidden_field_tag("copy") %>
- <%= styled_submit_tag t(:button_copy), class: '-highlight' %>
- <%= styled_submit_tag t(:button_copy_and_follow), name: 'follow', class: '-highlight' %>
+ <%= styled_submit_tag t(:button_copy), class: '-primary' %>
+ <%= styled_submit_tag t(:button_copy_and_follow), name: 'follow', class: '-primary' %>
<% else %>
- <%= styled_submit_tag t(:button_move), class: '-highlight' %>
- <%= styled_submit_tag t(:button_move_and_follow), name: 'follow', class: '-highlight' %>
+ <%= styled_submit_tag t(:button_move), class: '-primary' %>
+ <%= styled_submit_tag t(:button_move_and_follow), name: 'follow', class: '-primary' %>
<% end %>
<% end %>
<% content_for :header_tags do %>
diff --git a/app/views/workflows/_form.html.erb b/app/views/workflows/_form.html.erb
index aa2f80fb890..9b952ab16a1 100644
--- a/app/views/workflows/_form.html.erb
+++ b/app/views/workflows/_form.html.erb
@@ -90,4 +90,3 @@ See COPYRIGHT and LICENSE files for more details.
<div class="generic-table--header-background -no-border"></div>
</div>
</div>
-
diff --git a/app/views/workflows/copy.html.erb b/app/views/workflows/copy.html.erb
index 0418e3df674..8c549e6b68b 100644
--- a/app/views/workflows/copy.html.erb
+++ b/app/views/workflows/copy.html.erb
@@ -75,5 +75,5 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
</section>
- <%= styled_submit_tag t(:button_copy), class: '-highlight' %>
+ <%= styled_submit_tag t(:button_copy), class: '-primary' %>
<% end %>
diff --git a/app/views/workflows/edit.html.erb b/app/views/workflows/edit.html.erb
index db349e7a27e..973380bac30 100644
--- a/app/views/workflows/edit.html.erb
+++ b/app/views/workflows/edit.html.erb
@@ -56,7 +56,7 @@ See COPYRIGHT and LICENSE files for more details.
</li>
</ul>
<li class="simple-filters--controls">
- <%= submit_tag t(:button_edit), name: nil, accesskey: accesskey(:edit), class: 'button -small -highlight' %>
+ <%= submit_tag t(:button_edit), name: nil, accesskey: accesskey(:edit), class: 'button -small -primary' %>
</li>
</ul>
</fieldset>
@@ -79,7 +79,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= render partial: 'form', locals: { name: 'assignee', workflows: @workflows['assignee'] } %>
<% 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 %>
<% end %>
diff --git a/docs/development/concepts/translations/README.md b/docs/development/concepts/translations/README.md
index f32ca3e7a1c..d4237061e9b 100644
--- a/docs/development/concepts/translations/README.md
+++ b/docs/development/concepts/translations/README.md
@@ -115,7 +115,7 @@ public text = {
Then you can use them as below in your template:
```html
-<button type="submit" class="button -highlight">
+<button type="submit" class="button -primary">
<span class="button—text" [innerText]=”text.saveButton”></span>
</button>
diff --git a/frontend/src/app/core/setup/globals/components/admin/backup.component.html b/frontend/src/app/core/setup/globals/components/admin/backup.component.html
index e5e8a99e8c9..669d35fa181 100644
--- a/frontend/src/app/core/setup/globals/components/admin/backup.component.html
+++ b/frontend/src/app/core/setup/globals/components/admin/backup.component.html
@@ -66,7 +66,7 @@
<button
name="button"
type="submit"
- class="-highlight button"
+ class="-primary button"
[disabled]="backupToken.length === 0"
(click)="triggerBackup($event)"
>
diff --git a/frontend/src/app/features/admin/types/type-form-configuration.html b/frontend/src/app/features/admin/types/type-form-configuration.html
index b81afd11d77..db468695687 100644
--- a/frontend/src/app/features/admin/types/type-form-configuration.html
+++ b/frontend/src/app/features/admin/types/type-form-configuration.html
@@ -2,7 +2,7 @@
<div class="toolbar toolbar_empty-title">
<ul class="toolbar-items">
<li class="toolbar-item">
- <button type="button -alt-highlight"
+ <button type="button -primary"
class="form-configuration--reset button"
(click)="resetToDefault($event)">
<op-icon icon-classes="button--icon icon-undo"></op-icon>
@@ -12,7 +12,7 @@
<li
*ngIf="!typeBanner.eeShowBanners"
class="toolbar-item drop-down">
- <a class="form-configuration--add-group button -alt-highlight" aria-haspopup="true">
+ <a class="form-configuration--add-group button -primary" aria-haspopup="true">
<op-icon icon-classes="button--icon icon-add"></op-icon>
<span class="button--text" [textContent]="text.label_group"></span>
<op-icon icon-classes="button--dropdown-indicator"></op-icon>
diff --git a/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html b/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html
index 5ffbf4c51a6..951c507063a 100644
--- a/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html
+++ b/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html
@@ -55,7 +55,7 @@
[attr.title]="text.button_cancel"
></button>
<button
- class="button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -primary spot-action-bar--action"
data-test-selector="confirmation-modal--confirmed"
(click)="create()"
[disabled]="!this.selectedAttribute || inFlight"
diff --git a/frontend/src/app/features/boards/board/configuration-modal/board-configuration.modal.html b/frontend/src/app/features/boards/board/configuration-modal/board-configuration.modal.html
index 0a1d23b6280..76ab53bb4db 100644
--- a/frontend/src/app/features/boards/board/configuration-modal/board-configuration.modal.html
+++ b/frontend/src/app/features/boards/board/configuration-modal/board-configuration.modal.html
@@ -18,7 +18,7 @@
(click)="closeMe($event)"
></button>
<button
- class="button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -primary spot-action-bar--action"
[textContent]="text.applyButton"
(click)="saveChanges()"
></button>
diff --git a/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.html b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.html
index 774abbe5d8e..9f431caa7df 100644
--- a/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.html
+++ b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.html
@@ -11,7 +11,7 @@
<div class="op-sidebar--footer">
<button
*ngIf="canCreateBoards$ | async"
- class="button -alt-highlight -expand"
+ class="button -primary -expand"
(click)="redirectToNewBoardForm()"
[title]="text.create_new_board"
data-test-selector="sidebar--create-board-button"
diff --git a/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.html b/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.html
index b181a05607b..d88f3b1f2e2 100644
--- a/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.html
+++ b/frontend/src/app/features/calendar/sidemenu/calendar-sidemenu.component.html
@@ -11,7 +11,7 @@
<div class="op-sidebar--footer">
<button
*ngIf="(canCreateCalendar$ | async)"
- class="button -alt-highlight -expand"
+ class="button -primary -expand"
[uiSref]="createButton.uiSref"
[uiParams]="createButton.uiParams"
[title]="text.create_new_calendar"
diff --git a/frontend/src/app/features/enterprise/enterprise-base.component.html b/frontend/src/app/features/enterprise/enterprise-base.component.html
index def1f14d997..167a43b6c76 100644
--- a/frontend/src/app/features/enterprise/enterprise-base.component.html
+++ b/frontend/src/app/features/enterprise/enterprise-base.component.html
@@ -6,7 +6,7 @@
<span class="-bold">{{ text.become_hero }}</span><br>
<span>{{ text.you_contribute }}</span>
</p>
- <button class="button -alt-highlight" (click)="openTrialModal()">
+ <button class="button -primary" (click)="openTrialModal()">
{{ text.button_trial }}
</button>
</div>
diff --git a/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html
index 93a7434c7b3..ba1fdac3cad 100644
--- a/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html
+++ b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html
@@ -45,7 +45,7 @@
[attr.title]="text.button_cancel"
></button>
<button
- class="button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -primary spot-action-bar--action"
data-test-selector="confirmation-modal--confirmed"
(click)="onSubmit()"
[disabled]="!trialForm || trialForm.invalid"
@@ -57,7 +57,7 @@
<ng-template #mailSubmitted>
<div class="spot-action-bar--right">
<button
- class="button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -primary spot-action-bar--action"
data-test-selector="confirmation-modal--confirmed"
(click)="startEnterpriseTrial()"
[textContent]="text.button_continue"
@@ -67,7 +67,7 @@
></button>
<button
*ngIf="context.status === 'startTrial'"
- class="button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -primary spot-action-bar--action"
data-test-selector="confirmation-modal--confirmed"
(click)="closeModal($event)"
[textContent]="text.button_continue"
diff --git a/frontend/src/app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.sass b/frontend/src/app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.sass
index b66550f8274..662a423be22 100644
--- a/frontend/src/app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.sass
+++ b/frontend/src/app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.sass
@@ -1,6 +1,6 @@
.op-ee-trial-waiting
&-status--confirmed
- color: var(--button--alt-highlight-background-color)
+ color: var(--button--primary-background-color)
&-status--waiting
- color: orange
\ No newline at end of file
+ color: orange
diff --git a/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.html b/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.html
index 49a011e3405..c42e0558a60 100644
--- a/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.html
+++ b/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.html
@@ -4,7 +4,7 @@
<button
type="button"
[disabled]="trialRequested"
- class="button -alt-highlight"
+ class="button -primary"
(click)="openTrialModal()"
>
{{ text.button_trial }}
diff --git a/frontend/src/app/features/invite-user-modal/principal/principal.component.html b/frontend/src/app/features/invite-user-modal/principal/principal.component.html
index f34564f63e3..db8f176c28f 100644
--- a/frontend/src/app/features/invite-user-modal/principal/principal.component.html
+++ b/frontend/src/app/features/invite-user-modal/principal/principal.component.html
@@ -126,7 +126,7 @@
></button>
<button
type="submit"
- class="button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -primary spot-action-bar--action"
[textContent]="text.principal.nextButton"
></button>
</div>
diff --git a/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html b/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html
index 7c6392fddd3..c22b84e449e 100644
--- a/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html
+++ b/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html
@@ -73,7 +73,7 @@
></button>
<button
type="submit"
- class="button -highlight spot-action-bar--action"
+ class="button -primary spot-action-bar--action"
[textContent]="text.nextButton"
></button>
</div>
diff --git a/frontend/src/app/features/invite-user-modal/success/success.component.html b/frontend/src/app/features/invite-user-modal/success/success.component.html
index 728c90c3716..130243299af 100644
--- a/frontend/src/app/features/invite-user-modal/success/success.component.html
+++ b/frontend/src/app/features/invite-user-modal/success/success.component.html
@@ -17,7 +17,7 @@
<div class="spot-action-bar--right">
<button
type="button"
- class="button -highlight spot-action-bar--action"
+ class="button -primary spot-action-bar--action"
(click)="close.emit()"
[textContent]="text.nextButton"
></button>
diff --git a/frontend/src/app/features/invite-user-modal/summary/summary.component.html b/frontend/src/app/features/invite-user-modal/summary/summary.component.html
index f0178d0bcb4..de8aff04204 100644
--- a/frontend/src/app/features/invite-user-modal/summary/summary.component.html
+++ b/frontend/src/app/features/invite-user-modal/summary/summary.component.html
@@ -49,7 +49,7 @@
>{{ text.cancelButton }}</button>
<button
type="submit"
- class="button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -primary spot-action-bar--action"
>{{ text.nextButton() }}</button>
</div>
</div>
diff --git a/frontend/src/app/features/projects/components/new-project/new-project.component.html b/frontend/src/app/features/projects/components/new-project/new-project.component.html
index 4667b5356b8..bea81db1c3f 100644
--- a/frontend/src/app/features/projects/components/new-project/new-project.component.html
+++ b/frontend/src/app/features/projects/components/new-project/new-project.component.html
@@ -2,7 +2,7 @@
class="op-form"
[formGroup]="templateForm"
>
- <div [ngClass]="{ 'op-highlighted-input': true, 'op-highlighted-input_active': !!templateControl?.value }">
+ <div [ngClass]="{ 'op-primaryed-input': true, 'op-primaryed-input_active': !!templateControl?.value }">
<spot-form-field
[label]="text.use_template"
data-qa-field-name="use_template"
@@ -28,4 +28,4 @@
[fieldGroups]="fieldGroups"
(submitted)="onSubmitted($event)"
helpTextAttributeScope="Project"
-></op-dynamic-form>
\ No newline at end of file
+></op-dynamic-form>
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 cb48a50aa6f..71dbfb6e443 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 @@
<span [textContent]="text.noData"></span>
<button
type="button"
- class="op-team-planner--empty-state-button button -highlight"
+ class="op-team-planner--empty-state-button button -primary"
data-test-selector="op-team-planner--empty-state-button"
(click)="showAssigneeAddRow()"
[textContent]="text.add_assignee"
diff --git a/frontend/src/app/features/team-planner/team-planner/sidemenu/team-planner-sidemenu.component.html b/frontend/src/app/features/team-planner/team-planner/sidemenu/team-planner-sidemenu.component.html
index c27ca06bc60..6d49c6203a3 100644
--- a/frontend/src/app/features/team-planner/team-planner/sidemenu/team-planner-sidemenu.component.html
+++ b/frontend/src/app/features/team-planner/team-planner/sidemenu/team-planner-sidemenu.component.html
@@ -10,7 +10,7 @@
<div class="op-sidebar--footer">
<button
*ngIf="(canAddTeamPlanner$ | async)"
- class="button -alt-highlight -expand"
+ class="button -primary -expand"
[uiSref]="createButton.uiSref"
[uiParams]="createButton.uiParams"
[title]="createButton.title"
diff --git a/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.html b/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.html
index d4563ad7d89..6a380d1e2ae 100644
--- a/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.html
+++ b/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.html
@@ -243,7 +243,7 @@
<div class="generic-table--action-buttons">
<button
- class="button -highlight"
+ class="button -primary"
[textContent]="text.save"
type="submit"
></button>
diff --git a/frontend/src/app/features/user-preferences/reminder-settings/page/reminder-settings-page.component.html b/frontend/src/app/features/user-preferences/reminder-settings/page/reminder-settings-page.component.html
index 3200af74821..f4cb171acdc 100644
--- a/frontend/src/app/features/user-preferences/reminder-settings/page/reminder-settings-page.component.html
+++ b/frontend/src/app/features/user-preferences/reminder-settings/page/reminder-settings-page.component.html
@@ -15,7 +15,7 @@
<div class="op-form--submit">
<button
- class="button -highlight"
+ class="button -primary"
[textContent]="text.save"
type="submit"
></button>
diff --git a/frontend/src/app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.html b/frontend/src/app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.html
index 841f76e46fa..3ab39815bb8 100644
--- a/frontend/src/app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.html
+++ b/frontend/src/app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.html
@@ -1,7 +1,7 @@
<div class="work-packages--edit-actions">
<button
id="work-packages--edit-actions-save"
- class="button -highlight"
+ class="button -primary"
accesskey="3"
[disabled]="saving"
(click)="save()">
diff --git a/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.html b/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.html
index 396a2b50616..ec8b14a386a 100644
--- a/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.html
@@ -1,11 +1,11 @@
<div class="op-baseline--header"
[class.op-baseline_tab]="!showActionBar">
- <div
+ <div
class="op-baseline--enterprise-title"
*ngIf="eeShowBanners">
<span class="">{{ text.baseline_comparison }}</span>
<span class="spot-icon spot-icon_enterprise-addons"></span>
- </div>
+ </div>
<span class="spot-body-small">{{ eeShowBanners ? text.enterprise_header_description : text.header_description }}</span>
<a
*ngIf="eeShowBanners"
@@ -13,7 +13,7 @@
class="op-baseline--info-button spot-body-small"
target=”_blank”>
{{ text.more_info_text }}
- <span class="spot-icon spot-icon_external-link"></span>
+ <span class="spot-icon spot-icon_external-link"></span>
</a>
</div>
<form
@@ -214,7 +214,7 @@
{{ text.clear }}
</button>
<button
- class="button -highlight spot-action-bar--action"
+ class="button -primary spot-action-bar--action"
>
{{ text.apply }}
</button>
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 92e9128adee..032e66fcd21 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
@@ -1,6 +1,6 @@
<div class="wp-create-button">
<button
- class="button -alt-highlight add-work-package"
+ class="button -primary add-work-package"
[disabled]="disabled"
[attr.aria-label]="text.explanation"
opTypesCreateDropdown
diff --git a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html
index 1189832d601..5cc801e15eb 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html
@@ -31,7 +31,7 @@
>
</button>
<button
- class="button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -primary spot-action-bar--action"
data-test-selector="spot-modal-wp-table-configuration-save-button"
[textContent]="text.applyButton"
(click)="saveChanges()"
diff --git a/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.html b/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.html
index 366d41e3161..8ed5a87a897 100644
--- a/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.html
+++ b/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.html
@@ -81,7 +81,7 @@
></button>
<button
type="submit"
- class="button -highlight spot-action-bar--action"
+ class="button -primary spot-action-bar--action"
data-test-selector="op-datepicker-modal--action"
[textContent]="applyLabel"
></button>
diff --git a/frontend/src/app/shared/components/datepicker/multi-date-picker/multi-date-picker.component.html b/frontend/src/app/shared/components/datepicker/multi-date-picker/multi-date-picker.component.html
index 0d9bd508289..815281bf27f 100644
--- a/frontend/src/app/shared/components/datepicker/multi-date-picker/multi-date-picker.component.html
+++ b/frontend/src/app/shared/components/datepicker/multi-date-picker/multi-date-picker.component.html
@@ -33,7 +33,7 @@
slot="input"
name="startDate"
class="op-datepicker-modal--date-field"
- [attr.data-qa-highlighted]="showFieldAsActive('start') || undefined"
+ [attr.data-qa-primaryed]="showFieldAsActive('start') || undefined"
[ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('start')}"
[ngModel]="dates.start"
(ngModelChange)="startDateChanged$.next($event)"
@@ -56,7 +56,7 @@
slot="input"
name="endDate"
class="op-datepicker-modal--date-field"
- [attr.data-qa-highlighted]="showFieldAsActive('end') || undefined"
+ [attr.data-qa-primaryed]="showFieldAsActive('end') || undefined"
[ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('end')}"
[ngModel]="dates.end"
(ngModelChange)="endDateChanged$.next($event)"
@@ -90,7 +90,7 @@
></button>
<button
type="submit"
- class="button -highlight spot-action-bar--action"
+ class="button -primary spot-action-bar--action"
data-test-selector="op-datepicker-modal--action"
[textContent]="applyLabel"
></button>
diff --git a/frontend/src/app/shared/components/datepicker/wp-multi-date-form/wp-multi-date-form.component.html b/frontend/src/app/shared/components/datepicker/wp-multi-date-form/wp-multi-date-form.component.html
index 491a504ef80..9a470cf98c8 100644
--- a/frontend/src/app/shared/components/datepicker/wp-multi-date-form/wp-multi-date-form.component.html
+++ b/frontend/src/app/shared/components/datepicker/wp-multi-date-form/wp-multi-date-form.component.html
@@ -37,7 +37,7 @@
name="startDate"
data-test-selector="op-datepicker-modal--start-date-field"
class="op-datepicker-modal--date-field"
- [attr.data-qa-highlighted]="showFieldAsActive('start') || undefined"
+ [attr.data-qa-primaryed]="showFieldAsActive('start') || undefined"
[ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('start')}"
[ngModel]="dates.start"
(ngModelChange)="startDateChanged$.next($event)"
@@ -63,7 +63,7 @@
name="endDate"
data-test-selector="op-datepicker-modal--end-date-field"
class="op-datepicker-modal--date-field"
- [attr.data-qa-highlighted]="showFieldAsActive('end') || undefined"
+ [attr.data-qa-primaryed]="showFieldAsActive('end') || undefined"
[ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('end')}"
[ngModel]="dates.end"
(ngModelChange)="endDateChanged$.next($event)"
@@ -90,7 +90,7 @@
name="duration"
data-test-selector="op-datepicker-modal--duration-field"
class="op-datepicker-modal--date-field"
- [attr.data-qa-highlighted]=" showFieldAsActive('duration') || undefined"
+ [attr.data-qa-primaryed]=" showFieldAsActive('duration') || undefined"
[ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('duration')}"
[ngModel]="durationFocused ? duration : displayedDuration"
[showClearButton]="currentlyActivatedDateField === 'duration'"
@@ -122,7 +122,7 @@
></button>
<button
type="submit"
- class="button -highlight spot-action-bar--action"
+ class="button -primary spot-action-bar--action"
data-test-selector="op-datepicker-modal--action"
[textContent]="text.save"
></button>
diff --git a/frontend/src/app/shared/components/datepicker/wp-single-date-form/wp-single-date-form.component.html b/frontend/src/app/shared/components/datepicker/wp-single-date-form/wp-single-date-form.component.html
index de5972287bd..dc89ece75d0 100644
--- a/frontend/src/app/shared/components/datepicker/wp-single-date-form/wp-single-date-form.component.html
+++ b/frontend/src/app/shared/components/datepicker/wp-single-date-form/wp-single-date-form.component.html
@@ -67,7 +67,7 @@
></button>
<button
type="submit"
- class="button -highlight spot-action-bar--action"
+ class="button -primary spot-action-bar--action"
data-test-selector="op-datepicker-modal--action"
[textContent]="text.save"
></button>
diff --git a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.html
index ae998d61ac0..7cadce03672 100644
--- a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.html
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.html
@@ -16,7 +16,7 @@
<div class="op-form--submit"
*ngIf="handleSubmit">
<button type="submit"
- class="button -highlight"
+ class="button -primary"
[disabled]="inFlight">
{{text.save}}
</button>
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
index ef4fb5bacae..8c1bd9d5d09 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
@@ -36,14 +36,14 @@
[attr.href]="moreInfoLink"
class="op-enterprise-banner--info-button"
target=”_blank”>
- <span class="spot-icon spot-icon_external-link"></span>
+ <span class="spot-icon spot-icon_external-link"></span>
{{ text.more_info_text }}
</a>
<a
[href]="pricingUrl"
target=”_blank”
- class="button -highlight">
+ class="button -primary">
<span class="spot-icon spot-icon_enterprise-addons"></span>
{{ text.upgrade }}
</a>
@@ -51,7 +51,7 @@
<a
[attr.href]="text.more_info_link"
target=”_blank”
- class="button -alt-highlight">
+ class="button -primary">
{{ text.button_trial }}
</a>
diff --git a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
index 81e71204293..a048cfbd9c2 100644
--- a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
+++ b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
@@ -1,4 +1,4 @@
-<div class="upsale-notification"
+<div class="upsale-notification"
[ngClass]="{ 'upsale-notification_hide-breadcrumb': hide_breadcrumb }">
<h2 [textContent]="feature_title"></h2>
<p *ngIf="feature_description">{{feature_description}}</p>
@@ -43,10 +43,9 @@
<a
[attr.href]="text.upgrade_link"
target="_blank"
- class="button -highlight">
+ class="button -primary">
<span class="spot-icon spot-icon_enterprise-addons"></span>
{{ text.upgrade }}
</a>
<free-trial-button></free-trial-button>
</div>
-
diff --git a/frontend/src/app/shared/components/forms/form.sass b/frontend/src/app/shared/components/forms/form.sass
index 0fe2a4e1da8..0b363247534 100644
--- a/frontend/src/app/shared/components/forms/form.sass
+++ b/frontend/src/app/shared/components/forms/form.sass
@@ -20,7 +20,7 @@
> .spot-form-field,
> .spot-selector-field,
> .op-option-list,
- > .op-highlighted-input,
+ > .op-primaryed-input,
> .button
&:not(:last-child)
margin-bottom: 1rem
diff --git a/frontend/src/app/shared/components/forms/highlighted-input.sass b/frontend/src/app/shared/components/forms/highlighted-input.sass
index fcd4c090d69..bfc976f06ed 100644
--- a/frontend/src/app/shared/components/forms/highlighted-input.sass
+++ b/frontend/src/app/shared/components/forms/highlighted-input.sass
@@ -1,4 +1,4 @@
-.op-highlighted-input
+.op-primaryed-input
padding: 1rem 1rem 0.5rem 0.75rem
display: flex
flex-direction: column
@@ -9,4 +9,3 @@
&_active
border: 1px solid #90cdf4
background: #ebf8ff
-
diff --git a/frontend/src/app/shared/components/grids/widgets/members/members.component.html b/frontend/src/app/shared/components/grids/widgets/members/members.component.html
index 5ed0e202c1a..d833dabb03e 100644
--- a/frontend/src/app/shared/components/grids/widgets/members/members.component.html
+++ b/frontend/src/app/shared/components/grids/widgets/members/members.component.html
@@ -42,7 +42,7 @@
<div class="op-members-widget--grid--widget-footer">
<a *ngIf="membersAddable$ | async"
[href]="projectMembershipsPath + '?show_add_members=true'"
- class="button -alt-highlight">
+ class="button -primary">
<i class="button--icon icon-add" aria-hidden="true"></i>
<span class="button--text"
[textContent]="text.add">
diff --git a/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.html b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.html
index b50793139d2..1a2bade53e3 100644
--- a/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.html
+++ b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.html
@@ -25,7 +25,7 @@
(click)="closeMe($event)"
></button>
<button
- class="button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -primary spot-action-bar--action"
[textContent]="text.applyButton"
(click)="saveChanges()"
></button>
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 2330836c36a..b734598fc0f 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
@@ -79,7 +79,7 @@
</a>
<a
*ngIf="canCreateNewProjects$ | async"
- class="button -alt-highlight spot-action-bar--action"
+ class="button -primary spot-action-bar--action"
[href]="newProjectPath()"
>
<span class="spot-icon spot-icon_add"></span>
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 f488a5bab19..094602a4f66 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
@@ -57,7 +57,7 @@
type="button"
class="button spot-action-bar--action"
data-test-selector="confirmation-modal--confirmed"
- [ngClass]="dangerHighlighting ? '-danger': '-highlight'"
+ [ngClass]="dangerHighlighting ? '-danger': '-primary'"
(click)="confirmAndClose($event)"
>
<span *ngIf="icon.continue as clazz" class="spot-icon spot-icon_{{clazz}}"></span>
diff --git a/frontend/src/app/shared/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.html b/frontend/src/app/shared/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.html
index 38a4998df8d..e3ddd59b6f6 100644
--- a/frontend/src/app/shared/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.html
+++ b/frontend/src/app/shared/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.html
@@ -61,7 +61,7 @@
[textContent]="text.button_cancel"
></button>
<button
- class="spot-modal--submit-button button button_no-margin -highlight spot-action-bar--action"
+ class="spot-modal--submit-button button button_no-margin -primary spot-action-bar--action"
tabindex="3"
[textContent]="text.button_save"
></button>
diff --git a/frontend/src/app/shared/components/modals/editor/macro-code-block-modal/code-block-macro.modal.html b/frontend/src/app/shared/components/modals/editor/macro-code-block-modal/code-block-macro.modal.html
index d9358bb3096..c304b20858c 100644
--- a/frontend/src/app/shared/components/modals/editor/macro-code-block-modal/code-block-macro.modal.html
+++ b/frontend/src/app/shared/components/modals/editor/macro-code-block-modal/code-block-macro.modal.html
@@ -45,7 +45,7 @@
[textContent]="text.button_cancel"
></button>
<button
- class="spot-modal--submit-button button button_no-margin -highlight spot-action-bar--action"
+ class="spot-modal--submit-button button button_no-margin -primary spot-action-bar--action"
tabindex="3"
[textContent]="text.button_save"
></button>
diff --git a/frontend/src/app/shared/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.html b/frontend/src/app/shared/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.html
index 44742ececf1..cbc9f9d3fa1 100644
--- a/frontend/src/app/shared/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.html
+++ b/frontend/src/app/shared/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.html
@@ -43,7 +43,7 @@
[attr.title]="text.button_cancel"
></button>
<button
- class="spot-modal--submit-button button button_no-margin -highlight spot-action-bar--action"
+ class="spot-modal--submit-button button button_no-margin -primary spot-action-bar--action"
(click)="applyAndClose($event)"
tabindex="3"
[textContent]="text.button_save"
diff --git a/frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.html b/frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.html
index b7f70e92599..0fdb78c19ae 100644
--- a/frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.html
+++ b/frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.html
@@ -68,7 +68,7 @@
[textContent]="text.button_cancel"
></button>
<button
- class="spot-modal--submit-button button button_no-margin -highlight spot-action-bar--action"
+ class="spot-modal--submit-button button button_no-margin -primary spot-action-bar--action"
tabindex="3"
[textContent]="text.button_save"
></button>
diff --git a/frontend/src/app/shared/components/modals/get-ical-url-modal/query-get-ical-url.modal.html b/frontend/src/app/shared/components/modals/get-ical-url-modal/query-get-ical-url.modal.html
index 30c62237fe1..4a62a7c8fbc 100644
--- a/frontend/src/app/shared/components/modals/get-ical-url-modal/query-get-ical-url.modal.html
+++ b/frontend/src/app/shared/components/modals/get-ical-url-modal/query-get-ical-url.modal.html
@@ -51,7 +51,7 @@
[textContent]="text.button_cancel"
(click)="closeMe($event)">
</button>
- <button type="submit" class="button button_no-margin -highlight -with-icon icon-copy spot-action-bar--action"
+ <button type="submit" class="button button_no-margin -primary -with-icon icon-copy spot-action-bar--action"
(click)="generateAndCopyUrl()"
[textContent]="text.button_copy"
[disabled]="isBusy">
diff --git a/frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.html b/frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.html
index 1474f55a1e7..ab8607e6607 100644
--- a/frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.html
+++ b/frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.html
@@ -39,7 +39,7 @@
</button>
<button
type="submit"
- class="button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -primary spot-action-bar--action"
[textContent]="additionalText.confirm_button"
data-test-selector="confirmation-modal--confirmed"
[disabled]="!passwordValuePresent()">
diff --git a/frontend/src/app/shared/components/modals/save-modal/save-query.modal.html b/frontend/src/app/shared/components/modals/save-modal/save-query.modal.html
index eae1060b0c2..36df1d2fcc6 100644
--- a/frontend/src/app/shared/components/modals/save-modal/save-query.modal.html
+++ b/frontend/src/app/shared/components/modals/save-modal/save-query.modal.html
@@ -49,7 +49,7 @@
(click)="closeMe($event)"
></button>
<button
- class="button button_no-margin -highlight -with-icon icon-save spot-action-bar--action"
+ class="button button_no-margin -primary -with-icon icon-save spot-action-bar--action"
[textContent]="text.button_save"
[disabled]="isBusy || !queryName"
></button>
diff --git a/frontend/src/app/shared/components/modals/share-modal/query-sharing.modal.html b/frontend/src/app/shared/components/modals/share-modal/query-sharing.modal.html
index e42113932fc..bd768f9098a 100644
--- a/frontend/src/app/shared/components/modals/share-modal/query-sharing.modal.html
+++ b/frontend/src/app/shared/components/modals/share-modal/query-sharing.modal.html
@@ -21,7 +21,7 @@
[disabled]="isBusy"
(click)="closeMe($event)">
</button>
- <button class="button button_no-margin -highlight -with-icon icon-save spot-action-bar--action"
+ <button class="button button_no-margin -primary -with-icon icon-save spot-action-bar--action"
(click)="saveQuery($event)"
[textContent]="text.button_save">
</button>
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 3a4544ef714..ba29d1e0eaf 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
@@ -98,7 +98,7 @@
</button>
<button
[disabled]="(loading$ | async)"
- class="button -highlight spot-action-bar--action"
+ class="button -primary spot-action-bar--action"
>
{{ text.apply }}
</button>
diff --git a/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.html b/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.html
index c222cf3a048..81902cc108b 100644
--- a/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.html
+++ b/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.html
@@ -93,7 +93,7 @@
type="button"
class="button spot-action-bar--action"
data-test-selector="op-files-picker-modal--confirm"
- [ngClass]="{ '-highlight': selectedFileCount > 0 }"
+ [ngClass]="{ '-primary': selectedFileCount > 0 }"
[disabled]="selectedFileCount === 0"
(click)="createSelectedFileLinks()"
>
diff --git a/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.html b/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.html
index 37a710221d0..893be4759a4 100644
--- a/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.html
+++ b/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.html
@@ -81,7 +81,7 @@
></button>
<button
type="button"
- class="button spot-action-bar--action -highlight"
+ class="button spot-action-bar--action -primary"
data-test-selector="op-files-picker-modal--confirm"
[disabled]="!canChooseLocation"
[textContent]="text.buttons.submit"
diff --git a/frontend/src/app/shared/components/storages/upload-conflict-modal/upload-conflict-modal.component.html b/frontend/src/app/shared/components/storages/upload-conflict-modal/upload-conflict-modal.component.html
index 7289c7292a0..6a4e716f79d 100644
--- a/frontend/src/app/shared/components/storages/upload-conflict-modal/upload-conflict-modal.component.html
+++ b/frontend/src/app/shared/components/storages/upload-conflict-modal/upload-conflict-modal.component.html
@@ -40,7 +40,7 @@
></button>
<button
type="button"
- class="button spot-action-bar--action -highlight"
+ class="button spot-action-bar--action -primary"
[textContent]="text.buttons.replace"
(click)="close(true)"
></button>
diff --git a/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.html b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.html
index 50b919bbc01..90655e678e5 100644
--- a/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.html
+++ b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.html
@@ -38,7 +38,7 @@
[attr.title]="text.cancel"
></button>
<button
- class="button -highlight button_no-margin spot-action-bar--action"
+ class="button -primary button_no-margin spot-action-bar--action"
*ngIf="saveAllowed"
(click)="saveEntry()"
[attr.title]="text.save"
diff --git a/frontend/src/app/shared/components/time_entries/timer/stop-existing-timer-modal.component.html b/frontend/src/app/shared/components/time_entries/timer/stop-existing-timer-modal.component.html
index 3c2c9d41995..88336a031e9 100644
--- a/frontend/src/app/shared/components/time_entries/timer/stop-existing-timer-modal.component.html
+++ b/frontend/src/app/shared/components/time_entries/timer/stop-existing-timer-modal.component.html
@@ -36,7 +36,7 @@
></button>
<button
type="button"
- class="button -highlight spot-action-bar--action"
+ class="button -primary spot-action-bar--action"
data-test-selector="op-files-picker-modal--confirm"
[textContent]="text.button_stop"
(click)="saveAndClose()"
diff --git a/frontend/src/global_styles/common/header/quick-add-menu.sass b/frontend/src/global_styles/common/header/quick-add-menu.sass
index a28a2264ee7..a910698b15a 100644
--- a/frontend/src/global_styles/common/header/quick-add-menu.sass
+++ b/frontend/src/global_styles/common/header/quick-add-menu.sass
@@ -1,7 +1,7 @@
.op-quick-add-menu
- $background: var(--button--alt-highlight-background-color)
- $background-hover: var(--button--alt-highlight-background-hover-color)
- $color: var(--button--alt-highlight-font-color)
+ $background: var(--button--primary-background-color)
+ $background-hover: var(--button--primary-background-hover-color)
+ $color: var(--button--primary-font-color)
flex-shrink: 0
&--icon::before
@@ -16,4 +16,4 @@
&:hover &
&--icon::before
- background: var(--button--alt-highlight-background-hover-color)
+ background: var(--button--primary-background-hover-color)
diff --git a/frontend/src/global_styles/content/_buttons.sass b/frontend/src/global_styles/content/_buttons.sass
index 93328987e96..86891ce083c 100644
--- a/frontend/src/global_styles/content/_buttons.sass
+++ b/frontend/src/global_styles/content/_buttons.sass
@@ -73,28 +73,19 @@ a.button
color: var(--content-form-danger-zone-font-color)
padding-left: 0px
- &.-highlight
- @include button-style(var(--button--highlight-background-color), var(--button--highlight-background-hover-color), var(--button--highlight-font-color))
- @include button-style(var(--button--highlight-background-color), var(--button--highlight-background-hover-color), var(--button--highlight-font-color))
- border-color: var(--button--highlight-background-color)
+ &.-primary
+ @include button-style(var(--button--primary-background-color), var(--button--primary-background-hover-color), var(--button--primary-font-color))
+ @include button-style(var(--button--primary-background-color), var(--button--primary-background-hover-color), var(--button--primary-font-color))
+ border-color: var(--button--primary-background-color)
&:hover, &:focus
- border-color: var(--button--highlight-background-hover-color)
+ border-color: var(--button--primary-background-hover-color)
&.-highlight-inverted
@include button-style(#fff, #f2f2f2, var(--content-link-color))
@include button-style(#fff, #f2f2f2, var(--content-link-color))
border-color: var(--content-link-color)
-
- &.-alt-highlight
- @include button-style(var(--button--alt-highlight-background-color), var(--button--alt-highlight-background-hover-color), var(--button--alt-highlight-font-color))
- @include button-style(var(--button--alt-highlight-background-color), var(--button--alt-highlight-background-hover-color), var(--button--alt-highlight-font-color))
- border-color: var(--button--alt-highlight-background-color)
-
- &:hover, &:focus
- border-color: var(--button--alt-highlight-background-hover-color)
-
&.-active
@include button-style(var(--button--active-background-color), var(--button--active-background-color), var(--button--active-font-color))
border-color: var(--button--active-border-color)
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index 0ebab06d508..552164658eb 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -143,7 +143,7 @@ form
.button
@extend %input--sizing
- &.-highlight
+ &.-primary
background: var(--content-form-danger-zone-bg-color)
color: var(--content-form-danger-zone-font-color)
border-color: var(--content-form-danger-zone-bg-color)
diff --git a/frontend/src/global_styles/content/_icon_control.sass b/frontend/src/global_styles/content/_icon_control.sass
index 745437e9210..0bf7aed9da1 100644
--- a/frontend/src/global_styles/content/_icon_control.sass
+++ b/frontend/src/global_styles/content/_icon_control.sass
@@ -41,7 +41,7 @@
&:hover, &.-active
text-decoration: none
color: white
- background: var(--button--highlight-background-color)
+ background: var(--button--primary-background-color)
&.-active:hover
color: var(--color-fg-muted)
diff --git a/frontend/src/global_styles/openproject/_variable_defaults.scss b/frontend/src/global_styles/openproject/_variable_defaults.scss
index dee8b8263d6..ccdf42a9b72 100644
--- a/frontend/src/global_styles/openproject/_variable_defaults.scss
+++ b/frontend/src/global_styles/openproject/_variable_defaults.scss
@@ -37,6 +37,7 @@
--primary-color--major2: #103e62;
--primary-color--major3: #0a2941;
--primary-button-color: var(--button-primary-bgColor-rest, var(--color-btn-primary-bg));
+ --primary-button-color--major1: #197032;
/**
* The 100vh bug on iOS is a well known issue that will not be addressed.
@@ -124,12 +125,9 @@
--button--active-font-color: #666666;
--button--active-background-color: #eeeeee;
--button--active-border-color: #cacaca;
- --button--alt-highlight-background-color: var(--primary-button-color);
- --button--alt-highlight-background-hover-color: #227d28;
- --button--highlight-font-color: var(--font-color-on-primary);
- --button--highlight-background-color: var(--primary-color);
- --button--highlight-background-hover-color: var(--primary-color--major1);
- --button--alt-highlight-font-color: var(--font-color-on-alternative);
+ --button--primary-background-color: var(--primary-button-color);
+ --button--primary-background-hover-color: var(--primary-button-color--major1);
+ --button--primary-font-color: var(--font-color-on-primary);
--generic-table--header-font-size: 0.875rem;
--generic-table--header-height: 45px;
--generic-table--footer-height: 34px;
diff --git a/frontend/src/global_styles/vendor/_enjoyhint.sass b/frontend/src/global_styles/vendor/_enjoyhint.sass
index c4d37ba7a33..d21db48ccb1 100755
--- a/frontend/src/global_styles/vendor/_enjoyhint.sass
+++ b/frontend/src/global_styles/vendor/_enjoyhint.sass
@@ -10,11 +10,11 @@
-o-transition: background-color 0.3s cubic-bezier(0, 0, 0, 0), color 0.3s cubic-bezier(0, 0, 0, 0), width 0.3s cubic-bezier(0, 0, 0, 0), border-width 0.3s cubic-bezier(0, 0, 0, 0), border-color 0.3s cubic-bezier(0, 0, 0, 0)
transition: background-color 0.3s cubic-bezier(0, 0, 0, 0), color 0.3s cubic-bezier(0, 0, 0, 0), width 0.3s cubic-bezier(0, 0, 0, 0), border-width 0.3s cubic-bezier(0, 0, 0, 0), border-color 0.3s cubic-bezier(0, 0, 0, 0)
&:hover
- border-color: var(--button--alt-highlight-background-hover-color)
- background: var(--button--alt-highlight-background-hover-color)
+ border-color: var(--button--primary-background-hover-color)
+ background: var(--button--primary-background-hover-color)
&:active
- border-color: var(--button--alt-highlight-background-hover-color)
- background: var(--button--alt-highlight-background-hover-color)
+ border-color: var(--button--primary-background-hover-color)
+ background: var(--button--primary-background-hover-color)
-webkit-transition: none
-moz-transition: none
-o-transition: none
@@ -160,7 +160,7 @@
.enjoyhint_btn
&:hover
color: rgba(255, 255, 255, 1)
- background: var(--button--alt-highlight-background-hover-color)
+ background: var(--button--primary-background-hover-color)
&:active
border: 2px solid rgba(33, 224, 163, 1)
background: rgba(33, 224, 163, 1)
diff --git a/frontend/src/stimulus/controllers/dynamic/backlogs/common.js b/frontend/src/stimulus/controllers/dynamic/backlogs/common.js
index 4d542cdfaeb..b762e3f4091 100644
--- a/frontend/src/stimulus/controllers/dynamic/backlogs/common.js
+++ b/frontend/src/stimulus/controllers/dynamic/backlogs/common.js
@@ -97,7 +97,7 @@ if (window.RB === null || window.RB === undefined) {
buttons: [
{
text: 'OK',
- class: 'button -highlight',
+ class: 'button -primary',
click: function () {
$(this).dialog("close");
}
diff --git a/frontend/src/stimulus/controllers/dynamic/backlogs/model.js b/frontend/src/stimulus/controllers/dynamic/backlogs/model.js
index 359a37e44a6..d8c4d500842 100644
--- a/frontend/src/stimulus/controllers/dynamic/backlogs/model.js
+++ b/frontend/src/stimulus/controllers/dynamic/backlogs/model.js
@@ -105,7 +105,7 @@ RB.Model = (function ($) {
buttons: [
{
text: 'OK',
- class: 'button -highlight',
+ class: 'button -primary',
click: function () {
self.copyFromDialog();
$(this).dialog("close");
diff --git a/lookbook/previews/open_project/deprecated/buttons_preview/alternative_highlight.html.erb b/lookbook/previews/open_project/deprecated/buttons_preview/alternative_highlight.html.erb
index 29259cc844c..0b4fa1f6504 100644
--- a/lookbook/previews/open_project/deprecated/buttons_preview/alternative_highlight.html.erb
+++ b/lookbook/previews/open_project/deprecated/buttons_preview/alternative_highlight.html.erb
@@ -1,13 +1,13 @@
-<button class="button -alt-highlight"><i class="button--icon icon-add"></i><span class="button--text">Create</span></button>
-<button class="button -alt-highlight"><i class="button--icon icon-add"></i></button>
-<button class="button -alt-highlight">Create</button>
-<button class="button -alt-highlight" disabled>
+<button class="button -primary"><i class="button--icon icon-add"></i><span class="button--text">Create</span></button>
+<button class="button -primary"><i class="button--icon icon-add"></i></button>
+<button class="button -primary">Create</button>
+<button class="button -primary" disabled>
<i class="button--icon icon-add"></i><span class="button--text">Create</span>
</button>
<br>
-<a href="#" class="button -alt-highlight -with-icon icon-add">Create</a>
-<a href="#" class="button -alt-highlight">Click to create</a>
+<a href="#" class="button -primary -with-icon icon-add">Create</a>
+<a href="#" class="button -primary">Click to create</a>
-<input type="submit" class="button -alt-highlight" value="Submit to create"/>
-<input type="submit" class="button -alt-highlight" value="Do not create" disabled />
+<input type="submit" class="button -primary" value="Submit to create"/>
+<input type="submit" class="button -primary" value="Do not create" disabled />
diff --git a/lookbook/previews/open_project/deprecated/buttons_preview/highlight.html.erb b/lookbook/previews/open_project/deprecated/buttons_preview/highlight.html.erb
index 5e2df80c1b6..4a68fdaa550 100644
--- a/lookbook/previews/open_project/deprecated/buttons_preview/highlight.html.erb
+++ b/lookbook/previews/open_project/deprecated/buttons_preview/highlight.html.erb
@@ -1,13 +1,13 @@
-<button class="button -highlight"><i class="button--icon icon-checkmark"></i><span class="button--text">Apply</span></button>
-<button class="button -highlight"><i class="button--icon icon-checkmark"></i></button>
-<button class="button -highlight">Apply</button>
-<button class="button -highlight" disabled>
+<button class="button -primary"><i class="button--icon icon-checkmark"></i><span class="button--text">Apply</span></button>
+<button class="button -primary"><i class="button--icon icon-checkmark"></i></button>
+<button class="button -primary">Apply</button>
+<button class="button -primary" disabled>
<i class="button--icon icon-checkmark"></i><span class="button--text">Apply</span>
</button>
<br>
-<a href="#" class="button -highlight -with-icon icon-checkmark">Apply</a>
-<a href="#" class="button -highlight">Click to apply</a>
+<a href="#" class="button -primary -with-icon icon-checkmark">Apply</a>
+<a href="#" class="button -primary">Click to apply</a>
-<input type="submit" class="button -highlight" value="Submit to apply"/>
-<input type="submit" class="button -highlight" value="Do not apply" disabled />
+<input type="submit" class="button -primary" value="Submit to apply"/>
+<input type="submit" class="button -primary" value="Do not apply" disabled />
diff --git a/lookbook/previews/open_project/deprecated/danger_zone_preview/default.html.erb b/lookbook/previews/open_project/deprecated/danger_zone_preview/default.html.erb
index 9970042f875..79302436324 100644
--- a/lookbook/previews/open_project/deprecated/danger_zone_preview/default.html.erb
+++ b/lookbook/previews/open_project/deprecated/danger_zone_preview/default.html.erb
@@ -67,7 +67,7 @@
</p>
</div>
<div class="widget-box--buttons">
- <a class="button -highlight" href="">
+ <a class="button -primary" href="">
<span class="spot-icon spot-icon_edit"></span>
<span>Edit</span>
</a>
@@ -87,7 +87,7 @@
<li>Enum3</li>
</ul>
<div class="widget-box--buttons">
- <a class="button -alt-highlight" title="Add" href="">
+ <a class="button -primary" title="Add" href="">
<span class="spot-icon spot-icon_add"></span>
<span>Add</span>
</a>
diff --git a/lookbook/previews/open_project/deprecated/forms_preview/bordered.html.erb b/lookbook/previews/open_project/deprecated/forms_preview/bordered.html.erb
index fa68960d91f..a50cf37ec2b 100644
--- a/lookbook/previews/open_project/deprecated/forms_preview/bordered.html.erb
+++ b/lookbook/previews/open_project/deprecated/forms_preview/bordered.html.erb
@@ -9,6 +9,6 @@
</div>
<hr class="form--separator" />
- <button class="button -highlight">Save</button>
+ <button class="button -primary">Save</button>
<button class="button">Cancel</button>
</form>
diff --git a/lookbook/previews/open_project/deprecated/forms_preview/bordered_compressed.html.erb b/lookbook/previews/open_project/deprecated/forms_preview/bordered_compressed.html.erb
index 389f61e263f..22c5df438cd 100644
--- a/lookbook/previews/open_project/deprecated/forms_preview/bordered_compressed.html.erb
+++ b/lookbook/previews/open_project/deprecated/forms_preview/bordered_compressed.html.erb
@@ -9,6 +9,6 @@
</div>
<hr class="form--separator" />
- <button class="button -highlight">Save</button>
+ <button class="button -primary">Save</button>
<button class="button">Cancel</button>
</form>
diff --git a/lookbook/previews/open_project/deprecated/forms_preview/field_types.html.erb b/lookbook/previews/open_project/deprecated/forms_preview/field_types.html.erb
index 7ed22a8c0d3..c9509a48183 100644
--- a/lookbook/previews/open_project/deprecated/forms_preview/field_types.html.erb
+++ b/lookbook/previews/open_project/deprecated/forms_preview/field_types.html.erb
@@ -240,7 +240,7 @@ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
<div class="form--field">
<div class="form--field-container">
<div class="form--field-inline-buttons-container">
- <button class="form--field-inline-button button -highlight">Highlight</button>
+ <button class="form--field-inline-button button -primary">Highlight</button>
<button class="form--field-inline-button button -highlight-inverted">Alternative 1</button>
<button class="form--field-inline-button button -highlight-inverted">Alternative 2</button>
</div>
diff --git a/lookbook/previews/open_project/deprecated/simple_filters_preview/default.html.erb b/lookbook/previews/open_project/deprecated/simple_filters_preview/default.html.erb
index 3adbd5f391c..e57cdbb1f90 100644
--- a/lookbook/previews/open_project/deprecated/simple_filters_preview/default.html.erb
+++ b/lookbook/previews/open_project/deprecated/simple_filters_preview/default.html.erb
@@ -29,7 +29,7 @@
</div>
</li>
<li class="simple-filters--controls">
- <a class="button -highlight -small" href="#">Apply</a>
+ <a class="button -primary -small" href="#">Apply</a>
<a class="button -small -with-icon icon-undo" href="#">Clear</a>
</li>
</ul>
diff --git a/lookbook/previews/open_project/deprecated/simple_filters_preview/with_radio_buttons.html.erb b/lookbook/previews/open_project/deprecated/simple_filters_preview/with_radio_buttons.html.erb
index 7f3b5e34966..fb9c56e3248 100644
--- a/lookbook/previews/open_project/deprecated/simple_filters_preview/with_radio_buttons.html.erb
+++ b/lookbook/previews/open_project/deprecated/simple_filters_preview/with_radio_buttons.html.erb
@@ -42,7 +42,7 @@
</div>
</li>
<li class="simple-filters--controls">
- <a class="button -highlight -small" href="#">Apply</a>
+ <a class="button -primary -small" href="#">Apply</a>
<a class="button -small -with-icon icon-undo" href="#">Clear</a>
</li>
</ul>
diff --git a/lookbook/previews/open_project/deprecated/toolbar_component_preview/default.html.erb b/lookbook/previews/open_project/deprecated/toolbar_component_preview/default.html.erb
index 635b2c7cb56..6eb85e9d7fe 100644
--- a/lookbook/previews/open_project/deprecated/toolbar_component_preview/default.html.erb
+++ b/lookbook/previews/open_project/deprecated/toolbar_component_preview/default.html.erb
@@ -5,7 +5,7 @@
</div>
<ul class="toolbar-items">
<li class="toolbar-item">
- <a href="#" class="button -highlight">An important button</a>
+ <a href="#" class="button -primary">An important button</a>
</li>
<li class="toolbar-item">
<button class="button">Normal button</button>
diff --git a/lookbook/previews/open_project/deprecated/toolbar_component_preview/with_form_elements.html.erb b/lookbook/previews/open_project/deprecated/toolbar_component_preview/with_form_elements.html.erb
index d206baf2600..8fd73c4e7cf 100644
--- a/lookbook/previews/open_project/deprecated/toolbar_component_preview/with_form_elements.html.erb
+++ b/lookbook/previews/open_project/deprecated/toolbar_component_preview/with_form_elements.html.erb
@@ -27,7 +27,7 @@
</select>
</li>
<li class="toolbar-item -icon-only">
- <a href="#" class="button -highlight" aria-label="Add" title="Add">
+ <a href="#" class="button -primary" aria-label="Add" title="Add">
<i class="button--icon icon-add"></i>
<span class="button--text">Add</span>
</a>
diff --git a/lookbook/previews/open_project/deprecated/widget_component_preview/default.html.erb b/lookbook/previews/open_project/deprecated/widget_component_preview/default.html.erb
index 47089ba6af5..09f4ab915a6 100644
--- a/lookbook/previews/open_project/deprecated/widget_component_preview/default.html.erb
+++ b/lookbook/previews/open_project/deprecated/widget_component_preview/default.html.erb
@@ -18,7 +18,7 @@
</p>
<div class="danger-zone--verification">
<input type="text"></input>
- <button class="button -highlight" disabled>
+ <button class="button -primary" disabled>
<i class="button--icon icon-delete"></i>
<span class="button--text">Delete</span>
</button>
diff --git a/modules/avatars/frontend/module/avatar-upload-form/avatar-upload-form.html b/modules/avatars/frontend/module/avatar-upload-form/avatar-upload-form.html
index 2306b12ca4f..9630fdb2365 100644
--- a/modules/avatars/frontend/module/avatar-upload-form/avatar-upload-form.html
+++ b/modules/avatars/frontend/module/avatar-upload-form/avatar-upload-form.html
@@ -28,5 +28,5 @@
(click)="uploadAvatar($event)"
[attr.disabled]="!avatarFile || busy || undefined"
[textContent]="text.button_update"
- class="button -highlight -with-icon icon-checkmark">
+ class="button -primary -with-icon icon-checkmark">
</button>
diff --git a/modules/backlogs/app/views/backlogs_settings/show.html.erb b/modules/backlogs/app/views/backlogs_settings/show.html.erb
index 2de2234a287..b27335d10fa 100644
--- a/modules/backlogs/app/views/backlogs_settings/show.html.erb
+++ b/modules/backlogs/app/views/backlogs_settings/show.html.erb
@@ -65,5 +65,5 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
- <%= styled_submit_tag t(:button_apply), class: '-highlight' %>
+ <%= styled_submit_tag t(:button_apply), class: '-primary' %>
<% end %>
diff --git a/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb b/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb
index 620a4ab9267..223f6c34cba 100644
--- a/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb
+++ b/modules/backlogs/app/views/projects/settings/backlogs/show.html.erb
@@ -82,7 +82,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
<div class="generic-table--action-buttons">
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
</div>
<% end %>
@@ -90,5 +90,5 @@ See COPYRIGHT and LICENSE files for more details.
<h3><%= t('backlogs.rebuild_positions') %></h3>
<%= styled_form_tag(controller: '/projects/settings/backlogs', action: "rebuild_positions", id: @project) do %>
- <p><%= styled_button_tag t('backlogs.rebuild'), class: '-highlight' %></p>
+ <p><%= styled_button_tag t('backlogs.rebuild'), class: '-primary' %></p>
<% 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 dd2d3e7aada..82cd4125168 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 %>
<li class="toolbar-item">
<%= 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/modules/backlogs/app/views/version_settings/edit.html.erb b/modules/backlogs/app/views/version_settings/edit.html.erb
index f9828c12068..b05008224be 100644
--- a/modules/backlogs/app/views/version_settings/edit.html.erb
+++ b/modules/backlogs/app/views/version_settings/edit.html.erb
@@ -31,5 +31,5 @@ See COPYRIGHT and LICENSE files for more details.
<% html_title t(:label_version) %>
<% labelled_tabular_form_for :version, @version, url: project_version_path(@project, @version), html: { method: :put } do |f| %>
<%= render partial: 'form', locals: { 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/modules/bim/app/views/bim/bcf/issues/_import_solution.html.erb b/modules/bim/app/views/bim/bcf/issues/_import_solution.html.erb
index 913d07c6a1f..aa3da722881 100644
--- a/modules/bim/app/views/bim/bcf/issues/_import_solution.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/_import_solution.html.erb
@@ -14,7 +14,7 @@
</div>
</div>
-<%= styled_submit_tag t('bcf.bcf_xml.import.button_proceed'), class: '-highlight' %>
+<%= styled_submit_tag t('bcf.bcf_xml.import.button_proceed'), class: '-primary' %>
<%= link_to t(:button_cancel),
defaults_bcf_project_ifc_models_path(@project),
diff --git a/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erb
index 7a55a57ae05..8a2d8eb4320 100644
--- a/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erb
@@ -11,9 +11,8 @@
<%= t('bcf.bcf_xml.import.import_as_system_user') %>
</div>
- <%= styled_submit_tag t('bcf.bcf_xml.import.button_proceed'), class: '-highlight' %>
+ <%= styled_submit_tag t('bcf.bcf_xml.import.button_proceed'), class: '-primary' %>
<%= link_to t(:button_cancel),
defaults_bcf_project_ifc_models_path(@project),
class: 'button' %>
<% end %>
-
diff --git a/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb
index 81bb290e0df..f0ff818f215 100644
--- a/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb
@@ -47,7 +47,7 @@
<%= t('bcf.bcf_xml.import.replace_with_system_user') %>.
</div>
<% end %>
- <%= styled_submit_tag t('bcf.bcf_xml.import.button_proceed'), class: '-highlight' %>
+ <%= styled_submit_tag t('bcf.bcf_xml.import.button_proceed'), class: '-primary' %>
<% else %>
<div class="op-toast -error">
<div class="op-toast--content">
diff --git a/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb b/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb
index f0eea525ccd..cd7a1196aff 100644
--- a/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb
@@ -4,7 +4,7 @@
<%= link_to t('bcf.bcf_xml.import.button_back_to_list'),
defaults_bcf_project_ifc_models_path(@project),
- class: 'button -highlight' %>
+ class: 'button -primary' %>
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= I18n.t('bcf.label_imported_successfully') %></legend>
@@ -17,4 +17,3 @@
<legend class="form--fieldset-legend"><%= I18n.t('bcf.label_imported_failed') %></legend>
<%= render partial: 'render_issues', locals: { issues: @issues[:failed] } %>
</fieldset>
-
diff --git a/modules/bim/app/views/bim/bcf/issues/upload.html.erb b/modules/bim/app/views/bim/bcf/issues/upload.html.erb
index 12212012ab9..ed39731dee5 100644
--- a/modules/bim/app/views/bim/bcf/issues/upload.html.erb
+++ b/modules/bim/app/views/bim/bcf/issues/upload.html.erb
@@ -12,7 +12,7 @@
</div>
</div>
- <%= submit_tag t('bcf.bcf_xml.import.button_prepare'), class: 'button -highlight' %>
+ <%= submit_tag t('bcf.bcf_xml.import.button_prepare'), class: 'button -primary' %>
<%= link_to t(:button_cancel),
defaults_bcf_project_ifc_models_path(@project),
class: 'button' %>
diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/edit.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/edit.html.erb
index 3365cc51f54..b301893055f 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_models/edit.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/edit.html.erb
@@ -32,5 +32,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @ifc_model, url: bcf_project_ifc_model_path(@project, @ifc_model), method: 'PATCH' do |f| -%>
<%= error_messages_for @ifc_model %>
<%= 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/modules/bim/app/views/bim/ifc_models/ifc_models/index.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/index.html.erb
index dcde8d48ace..988757c1beb 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_models/index.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/index.html.erb
@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if User.current.allowed_in_project?(:manage_ifc_models, @project) %>
<li class="toolbar-item">
<%= link_to new_bcf_project_ifc_model_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: { label: t(:'ifc_models.label_new_ifc_model') },
title: t(:'ifc_models.label_new_ifc_model') } do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erb
index d727929581f..c8585fc0206 100644
--- a/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erb
+++ b/modules/bim/app/views/bim/ifc_models/ifc_models/new.html.erb
@@ -31,5 +31,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @ifc_model, url: bcf_project_ifc_models_path(@project), html: { multipart: true } do |f| -%>
<%= error_messages_for @ifc_model %>
<%= render :partial => 'form', locals: { f: f } %>
- <%= styled_button_tag t(:button_create), class: "-highlight -with-icon icon-checkmark" %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
<% end %>
diff --git a/modules/bim/spec/support/pages/ifc_models/index.rb b/modules/bim/spec/support/pages/ifc_models/index.rb
index 737013cb593..e52dd174af6 100644
--- a/modules/bim/spec/support/pages/ifc_models/index.rb
+++ b/modules/bim/spec/support/pages/ifc_models/index.rb
@@ -57,7 +57,7 @@ module Pages
visit!
else
- expect(page).to have_no_css('.button.-alt-highlight', text: 'IFC model')
+ expect(page).to have_no_css('.button.-primary', text: 'IFC model')
end
end
diff --git a/modules/boards/app/views/boards/boards/new.html.erb b/modules/boards/app/views/boards/boards/new.html.erb
index f0b780bb263..9f7fdc5f4a0 100644
--- a/modules/boards/app/views/boards/boards/new.html.erb
+++ b/modules/boards/app/views/boards/boards/new.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t('boards.label_create_new_board') %>
<%= labelled_tabular_form_for @board_grid, url: { controller: '/boards/boards', action: 'create', project_id: @project }, :html => {:id => 'board-form'} do |f| -%>
<%= render :partial => 'form', :locals => {:f => f} %>
- <%= styled_button_tag t(:button_create), class: '-highlight' %>
+ <%= styled_button_tag t(:button_create), class: '-primary' %>
<%= link_to t(:button_cancel), { controller: 'boards/boards', action: :index },
class: 'button' %>
<% end %>
diff --git a/modules/budgets/app/views/budgets/_edit.html.erb b/modules/budgets/app/views/budgets/_edit.html.erb
index c28ba52cd20..f135dd929e3 100644
--- a/modules/budgets/app/views/budgets/_edit.html.erb
+++ b/modules/budgets/app/views/budgets/_edit.html.erb
@@ -35,6 +35,6 @@ See COPYRIGHT and LICENSE files for more details.
:class => 'form'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %>
<div class="generic-table--action-buttons">
- <%= styled_button_tag t(:button_submit), class: '-with-icon icon-checkmark -highlight', id: 'budget-table--submit-button'%>
+ <%= styled_button_tag t(:button_submit), class: '-with-icon icon-checkmark -primary', id: 'budget-table--submit-button'%>
</div>
<% end %>
diff --git a/modules/budgets/app/views/budgets/destroy_info.html.erb b/modules/budgets/app/views/budgets/destroy_info.html.erb
index 0651bafef01..dec2f71cc82 100644
--- a/modules/budgets/app/views/budgets/destroy_info.html.erb
+++ b/modules/budgets/app/views/budgets/destroy_info.html.erb
@@ -56,7 +56,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
</section>
- <%= styled_submit_tag t(:button_apply), class: '-highlight' %>
+ <%= styled_submit_tag t(:button_apply), class: '-primary' %>
<%= link_to t(:button_cancel),
budget_path(@budget),
class: 'button' %>
diff --git a/modules/budgets/app/views/budgets/index.html.erb b/modules/budgets/app/views/budgets/index.html.erb
index c80db693281..223b4134944 100644
--- a/modules/budgets/app/views/budgets/index.html.erb
+++ b/modules/budgets/app/views/budgets/index.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_budget_plural) do %>
<% if authorize_for(:budgets, :new) %>
<li class="toolbar-item">
- <a href="<%= new_projects_budget_path(@project) %>" aria-label="<%= I18n.t(:button_add_budget) %>" id="add-budget-button" title="<%= I18n.t(:button_add_budget) %>" class="button -alt-highlight">
+ <a href="<%= new_projects_budget_path(@project) %>" aria-label="<%= I18n.t(:button_add_budget) %>" id="add-budget-button" title="<%= I18n.t(:button_add_budget) %>" class="button -primary">
<%= op_icon('button--icon icon-add') %>
<span class="button--text"><%= t(:label_budget) %></span>
</a>
diff --git a/modules/budgets/app/views/budgets/new.html.erb b/modules/budgets/app/views/budgets/new.html.erb
index cb5bf558a95..1a7d0ce33af 100644
--- a/modules/budgets/app/views/budgets/new.html.erb
+++ b/modules/budgets/app/views/budgets/new.html.erb
@@ -37,5 +37,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= render :partial => 'form', :locals => {:f => f} %>
<%= styled_button_tag t(:button_create), class: '-with-icon icon-checkmark', 'data-test-selector': 'budgets-create-button' %>
<%= styled_button_tag t(:button_create_and_continue), :name => 'continue',
- class: 'button -highlight'%>
+ class: 'button -primary'%>
<% end %>
diff --git a/modules/calendar/app/views/calendar/calendars/new.html.erb b/modules/calendar/app/views/calendar/calendars/new.html.erb
index 6eb6fba852d..2be583719dc 100644
--- a/modules/calendar/app/views/calendar/calendars/new.html.erb
+++ b/modules/calendar/app/views/calendar/calendars/new.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t(:label_new_calendar) %>
<%= labelled_tabular_form_for @view, url: { controller: '/calendar/calendars', action: 'create' }, :html => {:id => 'calendar-form'} do |f| -%>
<%= render :partial => 'form', :locals => {:f => f} %>
- <%= styled_button_tag t(:button_create), class: '-highlight' %>
+ <%= styled_button_tag t(:button_create), class: '-primary' %>
<%= link_to t(:button_cancel), { controller: 'calendar/calendars', action: 'index' },
class: 'button' %>
<% end %>
diff --git a/modules/costs/app/views/cost_types/index.html.erb b/modules/costs/app/views/cost_types/index.html.erb
index 29e557526fe..e63392fb7f8 100644
--- a/modules/costs/app/views/cost_types/index.html.erb
+++ b/modules/costs/app/views/cost_types/index.html.erb
@@ -30,7 +30,7 @@ See COPYRIGHT and LICENSE files for more details.
<% html_title t(:label_administration), t(:label_cost_type_plural) %>
<%= toolbar title: CostType.model_name.human(count: 2) do %>
<li class="toolbar-item">
- <a href="<%= new_cost_type_path %>" aria-label="<%= t(:button_add_cost_type) %>" title="<%= t(:button_add_cost_type) %>" class="button -alt-highlight">
+ <a href="<%= new_cost_type_path %>" aria-label="<%= t(:button_add_cost_type) %>" title="<%= t(:button_add_cost_type) %>" class="button -primary">
<%= op_icon('button--icon icon-add') %>
<span class="button--text"><%= CostType.model_name.human %></span>
</a>
@@ -60,7 +60,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</li>
<li class="simple-filters--controls">
- <%= submit_tag t(:button_apply), class: 'button -highlight -small' %>
+ <%= submit_tag t(:button_apply), class: 'button -primary -small' %>
<%= link_to t(:button_clear), cost_types_path, class: 'button -small -with-icon icon-undo' %>
</li>
</ul>
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 ed21f553fe0..0ea208d5e1a 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 %>
<div class="generic-table--action-buttons">
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
</div>
diff --git a/modules/documents/app/views/documents/edit.html.erb b/modules/documents/app/views/documents/edit.html.erb
index b1b1dc1f18d..e655fb9e427 100644
--- a/modules/documents/app/views/documents/edit.html.erb
+++ b/modules/documents/app/views/documents/edit.html.erb
@@ -31,5 +31,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @document, url: document_path(@document), method: 'PATCH' do |f| -%>
<%= render partial: "documents/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/modules/documents/app/views/documents/index.html.erb b/modules/documents/app/views/documents/index.html.erb
index d7542150c4d..f99adea29b2 100644
--- a/modules/documents/app/views/documents/index.html.erb
+++ b/modules/documents/app/views/documents/index.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if authorize_for(:documents, :new) %>
<li class="toolbar-item">
<%= link_to({:controller => '/documents', :action => 'new', :project_id => @project},
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t(:label_document_new)},
title: t(:label_document_new)}) do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/modules/documents/app/views/documents/new.html.erb b/modules/documents/app/views/documents/new.html.erb
index 45df1d2214f..bfc00062e3c 100644
--- a/modules/documents/app/views/documents/new.html.erb
+++ b/modules/documents/app/views/documents/new.html.erb
@@ -30,7 +30,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @document, url: project_documents_path(@project), html: { multipart: true } do |f| -%>
<%= render :partial => 'documents/form', locals: { f: f } %>
- <%= styled_button_tag t(:button_create), class: "-highlight -with-icon icon-checkmark" %>
+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>
<% end %>
-
-
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb
index 2690d747eed..70f764b8694 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/destroy_info.html.erb
@@ -54,7 +54,7 @@
<div class="danger-zone--verification">
<input type="text"></input>
- <%= 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 %>
@@ -65,4 +65,3 @@
</div>
</section>
<% end %>
-
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/edit.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/edit.html.erb
index 566e8af702c..44ea00bf829 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/edit.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/edit.html.erb
@@ -10,8 +10,7 @@
<%= render partial: 'form', locals: { f: f } %>
<p>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), { action: :show }, class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
-
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/new.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/new.html.erb
index 4111fbb90e1..2953cf40fc9 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/new.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_filters/new.html.erb
@@ -10,8 +10,7 @@
<%= render partial: 'form', locals: { f: f } %>
<p>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), ldap_groups_synchronized_groups_path, class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
-
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erb
index bf65a30c570..8c9da393ae5 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/destroy_info.html.erb
@@ -21,7 +21,7 @@
</p>
<div class="danger-zone--verification">
<input type="text"></input>
- <%= 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 %>
@@ -32,4 +32,3 @@
</div>
</section>
<% end %>
-
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb
index 74ca579a3b9..42cf3962f80 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb
@@ -56,8 +56,7 @@
</fieldset>
<p>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), url_for(action: :index), class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
-
diff --git a/modules/meeting/app/views/meeting_contents/_form.html.erb b/modules/meeting/app/views/meeting_contents/_form.html.erb
index 1ea5a8337a0..cbeb4cc1d58 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.
<p><%= f.text_field :journal_notes, label: :comments %></p>
<%= styled_button_tag t(:button_save),
- class: '-highlight -with-icon icon-checkmark button--save-agenda',
+ class: '-primary -with-icon icon-checkmark button--save-agenda',
data: { disable_with: I18n.t(:label_loading) } %>
<%= link_to t(:button_cancel),
"#",
diff --git a/modules/meeting/app/views/meeting_contents/history.html.erb b/modules/meeting/app/views/meeting_contents/history.html.erb
index 87ec5a96257..fc3d44e919b 100644
--- a/modules/meeting/app/views/meeting_contents/history.html.erb
+++ b/modules/meeting/app/views/meeting_contents/history.html.erb
@@ -137,6 +137,6 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</div>
-<%= styled_button_tag t(:label_view_diff), class: '-small -highlight' if show_diff %>
+<%= styled_button_tag t(:label_view_diff), class: '-small -primary' if show_diff %>
<%= pagination_links_full @content_versions %>
<% end %>
diff --git a/modules/meeting/app/views/meetings/_menu_query_select.html.erb b/modules/meeting/app/views/meetings/_menu_query_select.html.erb
index 24d2d6afb61..812a78d211f 100644
--- a/modules/meeting/app/views/meetings/_menu_query_select.html.erb
+++ b/modules/meeting/app/views/meetings/_menu_query_select.html.erb
@@ -68,7 +68,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if (@project && User.current.allowed_in_project?(:create_meetings, @project)) || (@project.nil? && User.current.allowed_in_any_project?(:create_meetings)) %>
<%= button_to polymorphic_path([:new, @project, :meeting]),
{ method: :get,
- class: 'button -alt-highlight -expand',
+ class: 'button -primary -expand',
aria: { label: t(:label_meeting_new) },
title: t(:label_meeting_new) } do %>
<%= spot_icon('add') %>
diff --git a/modules/meeting/app/views/meetings/edit.html.erb b/modules/meeting/app/views/meetings/edit.html.erb
index 3f3eaaabac1..365a37834db 100644
--- a/modules/meeting/app/views/meetings/edit.html.erb
+++ b/modules/meeting/app/views/meetings/edit.html.erb
@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: "#{t(:label_meeting)} ##{@meeting.id}" %>
<%= labelled_tabular_form_for @meeting, :url => {:controller => '/meetings', :action => 'update'}, :html => {:id => 'meeting-form', :method => :put} 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' %>
<%= link_to t(:button_cancel), { :action => 'show', :id => @meeting },
class: 'button -with-icon icon-cancel' %>
<% end if @project %>
diff --git a/modules/meeting/app/views/meetings/new.html.erb b/modules/meeting/app/views/meetings/new.html.erb
index 2c498f66340..1661907a753 100644
--- a/modules/meeting/app/views/meetings/new.html.erb
+++ b/modules/meeting/app/views/meetings/new.html.erb
@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.
'refresh-on-form-changes-target': 'form',
'refresh-on-form-changes-turbo-stream-url-value': new_meeting_url }} do |f| -%>
<%= render :partial => 'form', :locals => { f:, copy_from: } %>
- <%= styled_button_tag t(:button_create), class: '-highlight' %>
+ <%= styled_button_tag t(:button_create), class: '-primary' %>
<%= link_to t(:button_cancel), { :action => 'index', :project_id => @project },
class: 'button' %>
<% end %>
diff --git a/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb b/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb
index 95a6f1b6034..2f244dabd58 100644
--- a/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb
+++ b/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb
@@ -11,7 +11,7 @@
html: { class: 'form', autocomplete: 'off' } do |f| %>
<%= render partial: "form", locals: { f: f } %>
<p>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
diff --git a/modules/openid_connect/app/views/openid_connect/providers/index.html.erb b/modules/openid_connect/app/views/openid_connect/providers/index.html.erb
index f84ddf5283b..415c998f96f 100644
--- a/modules/openid_connect/app/views/openid_connect/providers/index.html.erb
+++ b/modules/openid_connect/app/views/openid_connect/providers/index.html.erb
@@ -4,7 +4,7 @@
<%= toolbar title: t('openid_connect.providers.plural') do %>
<li class="toolbar-item">
<%= link_to new_openid_connect_provider_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t('openid_connect.providers.label_add_new')},
title: t('openid_connect.providers.label_add_new')} do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/modules/openid_connect/app/views/openid_connect/providers/new.html.erb b/modules/openid_connect/app/views/openid_connect/providers/new.html.erb
index 2ffecfae30b..c7cbf0dce17 100644
--- a/modules/openid_connect/app/views/openid_connect/providers/new.html.erb
+++ b/modules/openid_connect/app/views/openid_connect/providers/new.html.erb
@@ -12,7 +12,7 @@
html: { class: 'form', autocomplete: 'off' } do |f| %>
<%= render partial: "form", locals: { f: f } %>
<p>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
diff --git a/modules/recaptcha/app/views/recaptcha/admin/show.html.erb b/modules/recaptcha/app/views/recaptcha/admin/show.html.erb
index 302d8666295..c67374539fb 100644
--- a/modules/recaptcha/app/views/recaptcha/admin/show.html.erb
+++ b/modules/recaptcha/app/views/recaptcha/admin/show.html.erb
@@ -52,6 +52,6 @@
</div>
</div>
</fieldset>
- <%= styled_submit_tag t(:button_apply), class: '-highlight' %>
+ <%= styled_submit_tag t(:button_apply), class: '-primary' %>
<% end %>
</section>
diff --git a/modules/reporting/lib/widget/controls/apply.rb b/modules/reporting/lib/widget/controls/apply.rb
index aaa12db717d..b77cde8015a 100644
--- a/modules/reporting/lib/widget/controls/apply.rb
+++ b/modules/reporting/lib/widget/controls/apply.rb
@@ -31,7 +31,7 @@ class Widget::Controls::Apply < Widget::Controls
write link_to(I18n.t(:button_apply),
'#',
id: 'query-icon-apply-button',
- class: 'button -highlight',
+ class: 'button -primary',
'data-target': url_for(action: 'index', set_filter: '1'))
end
end
diff --git a/modules/reporting/lib/widget/controls/delete.rb b/modules/reporting/lib/widget/controls/delete.rb
index a783f9e12e2..a0bcd75ac4a 100644
--- a/modules/reporting/lib/widget/controls/delete.rb
+++ b/modules/reporting/lib/widget/controls/delete.rb
@@ -42,7 +42,7 @@ class Widget::Controls::Delete < Widget::Controls
opt1 = link_to I18n.t(:button_delete),
url_for(url_opts),
method: :delete,
- class: 'button -highlight icon-context icon-delete'
+ class: 'button -primary icon-context icon-delete'
opt2 = link_to I18n.t(:button_cancel),
'#',
id: 'query-icon-delete-cancel',
diff --git a/modules/reporting/lib/widget/controls/save_as.rb b/modules/reporting/lib/widget/controls/save_as.rb
index a97db23bea4..ceea543bcd1 100644
--- a/modules/reporting/lib/widget/controls/save_as.rb
+++ b/modules/reporting/lib/widget/controls/save_as.rb
@@ -89,7 +89,7 @@ class Widget::Controls::SaveAs < Widget::Controls
save = link_to(I18n.t(:button_save),
'#',
id: 'query-icon-save-button',
- class: 'button -highlight icon-context icon-save',
+ class: 'button -primary icon-context icon-save',
'data-target': url_for(**save_url_params))
cancel = link_to(I18n.t(:button_cancel),
diff --git a/modules/storages/app/views/storages/admin/storages/confirm_destroy.html.erb b/modules/storages/app/views/storages/admin/storages/confirm_destroy.html.erb
index e19d43a5b36..5f33628f9f1 100644
--- a/modules/storages/app/views/storages/admin/storages/confirm_destroy.html.erb
+++ b/modules/storages/app/views/storages/admin/storages/confirm_destroy.html.erb
@@ -50,7 +50,7 @@ See COPYRIGHT and LICENSE files for more details.
</p>
<div class="danger-zone--verification">
<%= text_field_tag :delete_confirmation %>
- <%= 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/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb b/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb
index 6306e76ab6d..871598437d5 100644
--- a/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb
+++ b/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb
@@ -154,7 +154,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="form--field">
- <%= styled_button_tag class: "-highlight" do %>
+ <%= styled_button_tag class: "-primary" do %>
<%= spot_icon('checkmark') %>
<%= content_tag :span, submit_button_label %>
<% end %>
diff --git a/modules/storages/app/views/storages/project_settings/_storage_select_form.html.erb b/modules/storages/app/views/storages/project_settings/_storage_select_form.html.erb
index c6492937a80..a723e22d40d 100644
--- a/modules/storages/app/views/storages/project_settings/_storage_select_form.html.erb
+++ b/modules/storages/app/views/storages/project_settings/_storage_select_form.html.erb
@@ -44,7 +44,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<div class="form--field">
- <%= styled_button_tag class: "-highlight" do %>
+ <%= styled_button_tag class: "-primary" do %>
<%= spot_icon('checkmark') %>
<%= content_tag :span, submit_button_label %>
<% end %>
diff --git a/modules/storages/app/views/storages/project_settings/destroy_info.html.erb b/modules/storages/app/views/storages/project_settings/destroy_info.html.erb
index ccf209e0897..9da3cc13f4b 100644
--- a/modules/storages/app/views/storages/project_settings/destroy_info.html.erb
+++ b/modules/storages/app/views/storages/project_settings/destroy_info.html.erb
@@ -49,7 +49,7 @@ See COPYRIGHT and LICENSE files for more details.
</p>
<div class="danger-zone--verification">
<%= text_field_tag :delete_confirmation %>
- <%= 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/modules/storages/app/views/storages/project_settings/index.html.erb b/modules/storages/app/views/storages/project_settings/index.html.erb
index f8a608cbfb0..ab04939601b 100644
--- a/modules/storages/app/views/storages/project_settings/index.html.erb
+++ b/modules/storages/app/views/storages/project_settings/index.html.erb
@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.
<li class="toolbar-item">
<%= link_to new_project_settings_project_storage_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: { label: t(:'storages.label_new_storage') },
title: t(:'storages.label_new_storage') } do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/modules/team_planner/app/views/team_planner/team_planner/new.html.erb b/modules/team_planner/app/views/team_planner/team_planner/new.html.erb
index 2789ec04a67..19f56dc6dfa 100644
--- a/modules/team_planner/app/views/team_planner/team_planner/new.html.erb
+++ b/modules/team_planner/app/views/team_planner/team_planner/new.html.erb
@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= toolbar title: t('team_planner.label_new_team_planner') %>
<%= labelled_tabular_form_for @view, url: { controller: '/team_planner/team_planner', action: 'create' }, :html => {:id => 'team-planner-form'} do |f| -%>
<%= render :partial => 'form', :locals => {:f => f} %>
- <%= styled_button_tag t(:button_create), class: '-highlight' %>
+ <%= styled_button_tag t(:button_create), class: '-primary' %>
<%= link_to t(:button_cancel), { controller: 'team_planner/team_planner', action: 'overview' },
class: 'button' %>
<% end %>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb
index 53deeccebc6..da2ca788a88 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb
@@ -11,7 +11,7 @@
<%= styled_text_field_tag 'backup_code', nil, required: true, autocomplete: 'off', size: 20, maxlength: 20, tabindex: 1, autofocus: true %>
</div>
</div>
- <input type="submit" name="login" value="<%=t(:button_submit)%>" class="button -highlight" tabindex="2" />
+ <input type="submit" name="login" value="<%=t(:button_submit)%>" class="button -primary" tabindex="2" />
<% end %>
</div>
</div>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb
index 9dcbe71a567..7f9a4f527cc 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb
@@ -43,7 +43,7 @@
</label>
</div>
<% end %>
- <input type="submit" name="login" value="<%= t(:button_login) %>" class="button -highlight" tabindex="2"/>
+ <input type="submit" name="login" value="<%= t(:button_login) %>" class="button -primary" tabindex="2"/>
<% if resend_supported || has_other_devices || has_backup_codes %>
<div class="login-options-container">
<div class="login-links">
@@ -76,7 +76,7 @@
<label for="channel_<%= channel %>"><%= t("button_otp_by_#{channel}") %></label>
<% end %>
</div>
- <input type="submit" value="<%= t(:button_resend_otp_form) %>" id="submit_resend_form" class="button -highlight"/>
+ <input type="submit" value="<%= t(:button_resend_otp_form) %>" id="submit_resend_form" class="button -primary"/>
<% end %>
<% end %>
<% if has_other_devices %>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/index.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/index.html.erb
index d515bc645b1..83c6f718ba6 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/index.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/my/two_factor_devices/index.html.erb
@@ -29,7 +29,7 @@
<%= toolbar title: t('two_factor_authentication.label_two_factor_authentication') do %>
<li class="toolbar-item">
<%= link_to new_my_2fa_device_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t('two_factor_authentication.label_device')},
title: t('two_factor_authentication.devices.add_new')} do %>
<%= op_icon('button--icon icon-add') %>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb
index 91e5de1eee6..6c43855e3d5 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/settings.html.erb
@@ -69,6 +69,6 @@
</div>
</div>
</fieldset>
- <%= styled_submit_tag t(:button_apply), class: '-highlight' %>
+ <%= styled_submit_tag t(:button_apply), class: '-primary' %>
<% end %>
</section>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb
index e763712635c..64107c8b5c0 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/confirm.html.erb
@@ -14,6 +14,6 @@
</div>
</div>
<div>
- <input type="submit" name="login" value="<%= t 'button_continue' %>" class="button -highlight" tabindex="2" />
+ <input type="submit" name="login" value="<%= t 'button_continue' %>" class="button -primary" tabindex="2" />
</div>
<% end %>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb
index af4dbe010d0..5786e8c970b 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb
@@ -15,7 +15,7 @@
<%= hidden_field_tag 'key', @device_type %>
<%= render partial: "two_factor_authentication/two_factor_devices/form", locals: { f: f, device_type: @device_type, device: @device, user: @user } %>
<p>
- <%= styled_button_tag t(:button_continue), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_continue), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), index_path, class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
diff --git a/modules/two_factor_authentication/app/views/users/_two_factor_authentication_admin.html.erb b/modules/two_factor_authentication/app/views/users/_two_factor_authentication_admin.html.erb
index 306cbc83762..a1aa59dffc0 100644
--- a/modules/two_factor_authentication/app/views/users/_two_factor_authentication_admin.html.erb
+++ b/modules/two_factor_authentication/app/views/users/_two_factor_authentication_admin.html.erb
@@ -39,7 +39,7 @@
<% end %>
<% if ::OpenProject::TwoFactorAuthentication::TokenStrategyManager.admin_register_sms_strategy.present? %>
<li class="toolbar-item">
- <%= link_to new_user_2fa_device_path(@user, type: :sms), class: 'button -alt-highlight' do %>
+ <%= link_to new_user_2fa_device_path(@user, type: :sms), class: 'button -primary' do %>
<%= op_icon 'button--icon icon-add' %>
<span class="button--text"><%= t 'two_factor_authentication.admin.button_register_mobile_phone_for_user' %></span>
<% end %>
diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb
index 181ccaf3358..1d97909b179 100644
--- a/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb
+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb
@@ -16,7 +16,7 @@
html: { class: 'form', autocomplete: 'off' } do |f| %>
<%= render partial: "form", locals: { f: f, webhook: @webhook } %>
<p>
- <%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %>
</p>
-<% 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 7d3c2e4763f..b6773b0c180 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 %>
<li class="toolbar-item">
<%= link_to new_admin_outgoing_webhook_path,
- { class: 'button -alt-highlight',
+ { class: 'button -primary',
aria: {label: t('webhooks.outgoing.label_add_new')},
title: t('webhooks.outgoing.label_add_new')} do %>
<%= op_icon('button--icon icon-add') %>
@@ -19,4 +19,3 @@
</p>
<%= render ::Webhooks::Outgoing::Webhooks::TableComponent.new(rows: @webhooks) %>
-
diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb
index 57602eda0fa..1df7c94be00 100644
--- a/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb
+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb
@@ -15,7 +15,7 @@
html: { class: 'form', autocomplete: 'off' } do |f| %>
<%= render partial: "form", locals: { f: f, webhook: @webhook } %>
<p>
- <%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
+ <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %>
</p>
-<% end %>
\ No newline at end of file
+<% end %>
diff --git a/spec/features/support/components/danger_zone.rb b/spec/features/support/components/danger_zone.rb
index 0d125cf5119..516a1f9a348 100644
--- a/spec/features/support/components/danger_zone.rb
+++ b/spec/features/support/components/danger_zone.rb
@@ -48,7 +48,7 @@ class DangerZone
def danger_button
page.within container_selector do
- find('button.-highlight')
+ find('button.-primary')
end
end