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

Always show a border around highlighted backgrounds in light mode (similar to how it is done in the dark mode)

Henriette Darge0ab622291a0d
diff --git a/app/helpers/colors_helper.rb b/app/helpers/colors_helper.rb
index bd25c1f7531..ac61eaa323f 100644
--- a/app/helpers/colors_helper.rb
+++ b/app/helpers/colors_helper.rb
@@ -139,9 +139,7 @@ module ColorsHelper
end
def default_variables_light
- "--lightness-threshold: 0.453;
- --border-threshold: 0.75;
- --border-alpha: max(0, min(calc((var(--perceived-lightness) - var(--border-threshold)) * 100), 1));"
+ "--lightness-threshold: 0.453;"
end
def highlighted_background_dark
@@ -158,7 +156,7 @@ module ColorsHelper
if mode == "light_high_contrast"
style += "border: 1px solid hsla(var(--color-h), calc(var(--color-s) * 1%), calc((var(--color-l) - 75) * 1%), 1) !important;"
else
- style += "border: 1px solid hsla(var(--color-h), calc(var(--color-s) * 1%), calc((var(--color-l) - 25) * 1%), var(--border-alpha)) !important;"
+ style += "border: 1px solid hsl(var(--color-h), calc(var(--color-s) * 1%), calc((var(--color-l) - 15) * 1%)) !important;"
end
style