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

Fix: Override primer variable with custom OP colors on normal light mode

Aaron Contreras755c32667448
diff --git a/app/views/custom_styles/_primer_color_mapping.erb b/app/views/custom_styles/_primer_color_mapping.erb
index 867876df6b5..74d65480f06 100644
--- a/app/views/custom_styles/_primer_color_mapping.erb
+++ b/app/views/custom_styles/_primer_color_mapping.erb
@@ -5,6 +5,11 @@
--body-background: var(--color-canvas-default);
--body-font-color: var(--color-fg-default);
}
+ /* Override Primer variable to ensure compatibility with currently
+ 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;
+ }
[data-light-theme=light_high_contrast]{
--avatar-border-color: var(--color-avatar-border);
--list-item-hover--border-color: var(--color-action-list-item-default-active-border);