setShowPicker(false)}>
{
selectableSlot={selectableSlot}
/>
- )}
+
);
};
diff --git a/ui-core/src/styles/inputs/datePicker.css b/ui-core/src/styles/inputs/datePicker.css
index b5f2a1ef9..61558b0bb 100644
--- a/ui-core/src/styles/inputs/datePicker.css
+++ b/ui-core/src/styles/inputs/datePicker.css
@@ -13,17 +13,10 @@
}
.calendar-picker {
- position: absolute;
- width: fit-content;
- border-radius: 0.5rem;
- box-shadow:
- 0 0.813rem 0.938rem -0.438rem rgba(31, 27, 23, 0.1),
- 0 0.188rem 0.375rem rgba(31, 27, 23, 0.2);
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
- @apply bg-white-100;
.calendar-navigation-btn {
width: 2rem;
diff --git a/ui-core/src/styles/inputs/index.css b/ui-core/src/styles/inputs/index.css
index c3da36af7..db2d490cb 100644
--- a/ui-core/src/styles/inputs/index.css
+++ b/ui-core/src/styles/inputs/index.css
@@ -14,3 +14,4 @@
@import './timePicker.css';
@import './tokenInput.css';
@import './tolerancePicker.css';
+@import './modal.css';
diff --git a/ui-core/src/styles/inputs/modal.css b/ui-core/src/styles/inputs/modal.css
new file mode 100644
index 000000000..bf55f51f7
--- /dev/null
+++ b/ui-core/src/styles/inputs/modal.css
@@ -0,0 +1,33 @@
+.modal-overlay {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 1000;
+}
+
+.modal-content {
+ background-color: theme('colors.white.100');
+ border-radius: 0.5rem;
+ box-shadow:
+ 0px 1px 0px rgba(255, 255, 255, 1) inset,
+ 0px 4px 7px -3px rgba(24, 68, 239, 0.19),
+ 0px 1px 3px rgba(49, 46, 43, 0.2);
+ position: absolute;
+
+ .close-button {
+ position: absolute;
+ top: 16px;
+ right: 16px;
+ color: theme('colors.grey.50');
+
+ &:hover {
+ color: theme('colors.grey.90');
+ }
+
+ &:active {
+ color: theme('colors.grey.20');
+ }
+ }
+}
diff --git a/ui-core/src/styles/inputs/timePicker.css b/ui-core/src/styles/inputs/timePicker.css
index cf0200693..72aefd649 100644
--- a/ui-core/src/styles/inputs/timePicker.css
+++ b/ui-core/src/styles/inputs/timePicker.css
@@ -10,24 +10,8 @@
display: none;
}
- .modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 1000;
- }
-
.modal-content {
- background-color: #fff;
padding: 4.563rem;
- border-radius: 0.313rem;
- box-shadow:
- 0px 1px 0px rgba(255, 255, 255, 1) inset,
- 0px 4px 7px -3px rgba(24, 68, 239, 0.19),
- 0px 1px 3px rgba(49, 46, 43, 0.2);
- position: absolute;
}
.time-picker-container {
diff --git a/ui-core/src/styles/inputs/tolerancePicker.css b/ui-core/src/styles/inputs/tolerancePicker.css
index 88e36ac38..71185d8c6 100644
--- a/ui-core/src/styles/inputs/tolerancePicker.css
+++ b/ui-core/src/styles/inputs/tolerancePicker.css
@@ -20,13 +20,6 @@
}
.modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 1000;
-
.tolerance-picker-section {
display: flex;
gap: 1rem;
@@ -56,14 +49,7 @@
}
.modal-content {
- background-color: #fff;
padding: 1.25rem;
- border-radius: 0.313rem;
- box-shadow:
- 0px 1px 0px rgba(255, 255, 255, 1) inset,
- 0px 4px 7px -3px rgba(24, 68, 239, 0.19),
- 0px 1px 3px rgba(49, 46, 43, 0.2);
- position: absolute;
}
.time-picker-container {