From 66cffe5c6bb562ae6c8c4658e4c3ae295b3ad843 Mon Sep 17 00:00:00 2001 From: Antoine Girard Date: Tue, 24 Dec 2024 11:29:08 +0100 Subject: [PATCH] Fix: agent agenda off days contrast --- app/helpers/absences_helper.rb | 2 +- app/services/off_days.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/helpers/absences_helper.rb b/app/helpers/absences_helper.rb index d7255d5ea..dd5922c4f 100644 --- a/app/helpers/absences_helper.rb +++ b/app/helpers/absences_helper.rb @@ -1,5 +1,5 @@ module AbsencesHelper - CALENDAR_BACKGROUND_COLOR = "rgba(127, 140, 141, 0.7)".freeze + CALENDAR_BACKGROUND_COLOR = "rgba(52, 57, 58, 0.7)".freeze def absence_tag(absence) if absence.expired? diff --git a/app/services/off_days.rb b/app/services/off_days.rb index 2931b6653..555b15b95 100644 --- a/app/services/off_days.rb +++ b/app/services/off_days.rb @@ -65,6 +65,7 @@ def self.to_full_calendar_array start: jour_ferie.beginning_of_day.as_json, end: jour_ferie.end_of_day.as_json, backgroundColor: AbsencesHelper::CALENDAR_BACKGROUND_COLOR, + textColor: "white", } end end