From 9853e5814ea84e97f5993b7040a5f37ffc2a962f Mon Sep 17 00:00:00 2001 From: Brieuc-brd Date: Fri, 23 Feb 2024 13:20:25 +0100 Subject: [PATCH] [FIX] hr_holidays: adapt hovered color on mandatory days Commit[1] introduced a fix on the mandatory day style. But it also creates another color issue: when we hover a mandatory day in the month view the mandatory color dissapears. This commit adapts the selector to handle this issue. [1]: d75343d7d83ad56a7532038f01a2038c7e16f15f task-3758658 Part of task-3575827 closes odoo/odoo#155201 Signed-off-by: Sofie Gvaladze (sgv) --- .../static/src/views/calendar/calendar_renderer.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/addons/hr_holidays/static/src/views/calendar/calendar_renderer.scss b/addons/hr_holidays/static/src/views/calendar/calendar_renderer.scss index 712edabd6ce..c06b52b803a 100644 --- a/addons/hr_holidays/static/src/views/calendar/calendar_renderer.scss +++ b/addons/hr_holidays/static/src/views/calendar/calendar_renderer.scss @@ -8,9 +8,14 @@ .fc-day-number { font-weight: 600; } + } - &:not(.fc-disabled-day):not(:hover):not(.fc-today) .fc-day-number { - color: var(--mandatory-day-color) !important; + > .fc-view-container { + > .fc-dayGridYear-view .hr_mandatory_day:not(.fc-disabled-day):not(.fc-today):not(:hover), + > .fc-dayGridMonth-view .hr_mandatory_day:not(.fc-disabled-day):not(.fc-today) { + .fc-day-number { + color: var(--mandatory-day-color) !important; + } } }