Skip to content

The Open Standard for Generative UI

calender-Fix (#128)

Ankit Das58ef52f7258f
diff --git a/js/packages/react-ui/src/components/Calendar/components/calendarHelperComponents.scss b/js/packages/react-ui/src/components/Calendar/components/calendarHelperComponents.scss
index 306c913db..06c912713 100644
--- a/js/packages/react-ui/src/components/Calendar/components/calendarHelperComponents.scss
+++ b/js/packages/react-ui/src/components/Calendar/components/calendarHelperComponents.scss
@@ -1,12 +1,12 @@
@use "../../../cssUtils" as cssUtils;
-.crayon-calendar-select-content-months {
+.crayon-calendar-container .crayon-calendar-select-content-months {
padding: cssUtils.$spacing-2xs 0;
background-color: cssUtils.$bg-container;
box-shadow: none;
}
-.crayon-calendar-select-content-years {
+.crayon-calendar-container .crayon-calendar-select-content-years {
max-height: 295px;
min-width: 362px;
padding: cssUtils.$spacing-2xs 0;
diff --git a/js/packages/react-ui/src/components/Calendar/components/helperComponents.tsx b/js/packages/react-ui/src/components/Calendar/components/helperComponents.tsx
index 2db384eea..b2b070252 100644
--- a/js/packages/react-ui/src/components/Calendar/components/helperComponents.tsx
+++ b/js/packages/react-ui/src/components/Calendar/components/helperComponents.tsx
@@ -191,7 +191,7 @@ export const YearsDropdown = (
botType === "mobile" && "crayon-calendar-select-viewport-mobile",
)}
sideOffset={12}
- alignOffset={-95}
+ alignOffset={-75}
style={{
minHeight: `${containerHeight - 45}px`,
maxHeight: `${containerHeight - 45}px`,
diff --git a/js/packages/react-ui/src/components/DatePicker/helpers/components/HelperComponents.tsx b/js/packages/react-ui/src/components/DatePicker/helpers/components/HelperComponents.tsx
index 23e32ebf8..5cf831186 100644
--- a/js/packages/react-ui/src/components/DatePicker/helpers/components/HelperComponents.tsx
+++ b/js/packages/react-ui/src/components/DatePicker/helpers/components/HelperComponents.tsx
@@ -233,7 +233,7 @@ export const YearsDropdown = (
botType === "mobile" && "crayon-date-picker-select-viewport-mobile",
)}
sideOffset={12}
- alignOffset={-95}
+ alignOffset={-75}
style={{
minHeight: `${containerHeight - 45}px`,
maxHeight: `${containerHeight - 45}px`,
diff --git a/js/packages/react-ui/src/components/DatePicker/helpers/components/helperComponents.scss b/js/packages/react-ui/src/components/DatePicker/helpers/components/helperComponents.scss
index ee65d4219..57d70d8d7 100644
--- a/js/packages/react-ui/src/components/DatePicker/helpers/components/helperComponents.scss
+++ b/js/packages/react-ui/src/components/DatePicker/helpers/components/helperComponents.scss
@@ -1,17 +1,19 @@
@use "../../../../cssUtils" as cssUtils;
-.crayon-date-picker-select-content-months {
+.crayon-date-picker-renderer-floating-menu .crayon-date-picker-select-content-months {
padding: cssUtils.$spacing-2xs 0;
background-color: cssUtils.$bg-container;
box-shadow: none;
+ border-color: transparent;
}
-.crayon-date-picker-select-content-years {
+.crayon-date-picker-renderer-floating-menu .crayon-date-picker-select-content-years {
max-height: 295px;
min-width: 362px;
padding: cssUtils.$spacing-2xs 0;
background-color: cssUtils.$bg-container;
box-shadow: none;
+ border-color: transparent;
.crayon-date-picker-select-viewport {
display: grid;
grid-template-columns: repeat(3, 1fr);