Apply schedule datepicker popup styles
ci-deploy / build-deploy-test (push) Successful in 1m43s

This commit is contained in:
2026-05-14 13:27:09 +03:00
parent 6aa76f5f4d
commit 530115d8d1
+18 -19
View File
@@ -50,7 +50,11 @@
// Adapted from Angular p-calendar element selector to class-based selectors for PrimeReact // Adapted from Angular p-calendar element selector to class-based selectors for PrimeReact
.p-calendar { .p-calendar {
cursor: pointer; 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-header {
.p-datepicker-prev { .p-datepicker-prev {
background-image: url('/assets/img/arrow-left.svg'); background-image: url('/assets/img/arrow-left.svg');
@@ -60,6 +64,10 @@
span { span {
display: none; display: none;
} }
.p-icon {
display: none;
}
} }
.p-datepicker-title { .p-datepicker-title {
@@ -85,6 +93,10 @@
span { span {
display: none; display: none;
} }
.p-icon {
display: none;
}
} }
.p-datepicker-prev, .p-datepicker-prev,
@@ -150,6 +162,12 @@
span.p-disabled { span.p-disabled {
color: $gray; color: $gray;
opacity: 0.5; opacity: 0.5;
background-color: transparent;
&.p-highlight {
color: $gray;
background-color: $white;
}
&:hover { &:hover {
background-color: transparent; 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 { .calendar--mobile {
display: none; display: none;