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

Increase contrast of upsell coloured text

Henriette Darge297ce54853a9
diff --git a/app/components/enterprise_edition/plan_for_feature.rb b/app/components/enterprise_edition/plan_for_feature.rb
index 6341e5e29d1..64d2bee683f 100644
--- a/app/components/enterprise_edition/plan_for_feature.rb
+++ b/app/components/enterprise_edition/plan_for_feature.rb
@@ -81,7 +81,7 @@ module EnterpriseEdition
end
def plan_text
- plan_name = render(Primer::Beta::Text.new(font_weight: :bold, classes: "upsell-colored")) do
+ plan_name = render(Primer::Beta::Text.new(font_weight: :bold, classes: "upsell-colored-text")) do
I18n.t("ee.upsell.plan_name", plan: plan.capitalize)
end
diff --git a/app/components/enterprise_edition/trial_teaser_component.rb b/app/components/enterprise_edition/trial_teaser_component.rb
index 6af20ce95a8..016be7929e1 100644
--- a/app/components/enterprise_edition/trial_teaser_component.rb
+++ b/app/components/enterprise_edition/trial_teaser_component.rb
@@ -69,7 +69,7 @@ module EnterpriseEdition
end
def plan_name
- render(Primer::Beta::Text.new(font_weight: :bold, classes: "upsell-colored")) do
+ render(Primer::Beta::Text.new(font_weight: :bold, classes: "upsell-colored-text")) do
I18n.t("ee.upsell.plan_name", plan: token.plan.capitalize)
end
end
diff --git a/app/views/custom_styles/_primer_color_mapping.erb b/app/views/custom_styles/_primer_color_mapping.erb
index 407f3937d29..80174033327 100644
--- a/app/views/custom_styles/_primer_color_mapping.erb
+++ b/app/views/custom_styles/_primer_color_mapping.erb
@@ -91,6 +91,7 @@
--ck-color-button-on-disabled-background: var(--button-default-bgColor-disabled);
--ck-color-labeled-field-label-background: var(--overlay-bgColor);
--ck-color-input-disabled-background: var(--bgColor-disabled);
+ --enterprise-upsell-text-color: var(--enterprise-upsell-color);
}
[data-dark-theme=dark_high_contrast] {
diff --git a/frontend/src/global_styles/content/_enterprise.sass b/frontend/src/global_styles/content/_enterprise.sass
index 9d6f5b34013..b33eb2f6813 100644
--- a/frontend/src/global_styles/content/_enterprise.sass
+++ b/frontend/src/global_styles/content/_enterprise.sass
@@ -40,6 +40,9 @@
.upsell-colored
color: var(--enterprise-upsell-color) !important
+.upsell-colored-text
+ color: var(--enterprise-upsell-text-color) !important
+
.upsell-colored-background
background: var(--enterprise-upsell-color) !important
color: white !important
diff --git a/frontend/src/global_styles/openproject/_variable_defaults.scss b/frontend/src/global_styles/openproject/_variable_defaults.scss
index e513cd636cf..c1e1d9cfe07 100644
--- a/frontend/src/global_styles/openproject/_variable_defaults.scss
+++ b/frontend/src/global_styles/openproject/_variable_defaults.scss
@@ -133,5 +133,6 @@
--full-view-split-right-width: 550px;
--gantt-split-width: 50%;
--enterprise-upsell-color: #FB8F44;
+ --enterprise-upsell-text-color: #CE4C00;
--enterprise-upsell-border-color: #fb8f4466;
}