From 530115d8d11b71dcf54989fdf9c506c0f1442ab9 Mon Sep 17 00:00:00 2001 From: gnezim Date: Thu, 14 May 2026 13:27:09 +0300 Subject: [PATCH] Apply schedule datepicker popup styles --- src/styles/_prime-calendar.scss | 37 ++++++++++++++++----------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/src/styles/_prime-calendar.scss b/src/styles/_prime-calendar.scss index abe79e96..89d65ce9 100644 --- a/src/styles/_prime-calendar.scss +++ b/src/styles/_prime-calendar.scss @@ -50,7 +50,11 @@ // Adapted from Angular p-calendar element selector to class-based selectors for PrimeReact .p-calendar { cursor: pointer; +} +// PrimeReact appends the datepicker panel to the document body, so popup +// styles must target the overlay itself, not the input wrapper. +body .p-datepicker { .p-datepicker-header { .p-datepicker-prev { background-image: url('/assets/img/arrow-left.svg'); @@ -60,6 +64,10 @@ span { display: none; } + + .p-icon { + display: none; + } } .p-datepicker-title { @@ -85,6 +93,10 @@ span { display: none; } + + .p-icon { + display: none; + } } .p-datepicker-prev, @@ -150,6 +162,12 @@ span.p-disabled { color: $gray; opacity: 0.5; + background-color: transparent; + + &.p-highlight { + color: $gray; + background-color: $white; + } &:hover { background-color: transparent; @@ -160,25 +178,6 @@ } } -// PrimeReact appends the datepicker panel to the document body, so popup -// cells are not descendants of `.p-calendar`. Keep disabled operating days -// visibly unavailable in the actual popup, including dates that are inside the -// selected range and therefore also receive `p-highlight`. -body .p-datepicker table td > span.p-disabled { - color: $gray; - opacity: 0.5; - background-color: transparent; - - &.p-highlight { - color: $gray; - background-color: $white; - } - - &:hover { - background-color: transparent; - } -} - .calendar--mobile { display: none;