Files
Behrokh Satarnejad 1948ab4e55 [70458] Project status button is missing colors in the dropdown (#21892)
* Set color for icons in status button of projects and meetings

* Apply suggestion from @HDinger

Co-authored-by: Henriette Darge <h.darge@openproject.com>

---------

Co-authored-by: Henriette Darge <h.darge@openproject.com>
2026-02-06 14:52:20 +01:00

25 lines
959 B
Plaintext

<%# Highlightable resources %>
<% resources_scope_color_css("status", ::Status) %>
<% resources_scope_color_css("priority", ::IssuePriority) %>
<% resources_scope_color_css("type", ::Type, inline_foreground: true) %>
<%# Color coded icons %>
<% project_phase_color_css %>
<% Meetings::Statuses::AVAILABLE.each do |meeting_status| %>
<% resource_color_css("meeting_status", meeting_status, inline_foreground: true) %>
<% end %>
<% Projects::Statuses::AVAILABLE.each do |project_status| %>
<% resource_color_css("project_status", project_status, inline_foreground: true) %>
<% end %>
<% color_css %>
<%# usage classes %>
.__hl_border_top { border-top: 4px solid hsl(var(--color-h), calc(var(--color-s) * 1%), calc((var(--color-l) - 15) * 1%)) !important; }
<%# Overdue tasks %>
.__hl_date_due_today { color: var(--fgColor-severe) !important; }
.__hl_date_overdue { color: var(--fgColor-danger) !important; font-weight: var(--base-text-weight-bold); }