V2 select fixes (#4123)
This commit is contained in:
1 parent
898c83d1ad
commit
0e63996ee2
3 files changed
+28
-2
No files matched your search
@@ -7,4 +7,15 @@ export default {
|
||||
component: Select,
|
||||
} as ComponentMeta<typeof Select>;
|
||||
|
||||
export const Single = () => <Select options={[{ value: "text" }]} />;
|
||||
const testOptions = [
|
||||
{
|
||||
label: "Select",
|
||||
value: 0,
|
||||
},
|
||||
...[5, 10, 15, 20, 30, 45, 60, 90, 120].map((minutes) => ({
|
||||
label: minutes + " " + "minutes",
|
||||
value: minutes,
|
||||
})),
|
||||
];
|
||||
|
||||
export const Single = () => <Select options={testOptions} />;
|
||||
@@ -123,6 +123,9 @@ button[role="switch"][data-state="checked"] span {
|
||||
}
|
||||
|
||||
/* DateRangePicker */
|
||||
/*
|
||||
TODO:: Remove on V2 launch
|
||||
*/
|
||||
.react-daterange-picker > .react-daterange-picker__wrapper {
|
||||
/* border consistent with other inputs */
|
||||
@apply rounded-sm border-gray-300 px-2 py-1.5 text-sm lg:py-1;
|
||||
@@ -133,6 +136,7 @@ button[role="switch"][data-state="checked"] span {
|
||||
@apply my-0.5 h-auto rounded-sm py-0.5;
|
||||
}
|
||||
|
||||
|
||||
@layer components {
|
||||
/* slider */
|
||||
.slider {
|
||||
@@ -158,6 +162,12 @@ button[role="switch"][data-state="checked"] span {
|
||||
.slider .slider-thumb:focus {
|
||||
box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
/* React Select V2 */
|
||||
.cal-react-select-container .cal-react-select__control {
|
||||
@apply bg-white min-h-[36px] h-[36px] text-sm leading-4 border-gray-300 hover:border-neutral-400 focus-within:ring-2 focus-within:ring-neutral-800 focus-within:border-0 placeholder:text-gray-400 placeholder:text-sm placeholder:font-normal;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* !important to style multi-email input */
|
||||
|
||||
Reference in new issue
Block a user