Skip to content

Commit c3b14a1

Browse files
committed
Refine date picker and popover component styles
Simplified conditional class logic in the date picker and updated popover styles to use more generic CSS variables and utility classes for improved maintainability and consistency.
1 parent e8f7eca commit c3b14a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/components/src/renderers/form/date-picker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ ComponentRegistry.register('date-picker',
3535
id={schema.id}
3636
variant="outline"
3737
className={cn(
38-
'w-full justify-start text-left font-normal transition-all duration-300',
39-
!value ? 'text-muted-foreground' : 'text-cyan-300 font-medium shadow-[0_0_10px_-5px_rgba(6,182,212,0.5)] border-cyan-500/50 bg-cyan-950/20',
38+
'w-full justify-start text-left font-normal',
39+
!value && 'text-muted-foreground',
4040
className
4141
)}
4242
{...triggerProps}

packages/components/src/ui/popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function PopoverContent({
3030
align={align}
3131
sideOffset={sideOffset}
3232
className={cn(
33-
"bg-slate-950/90 backdrop-blur-xl border border-cyan-500/30 text-cyan-100 shadow-[0_0_20px_-5px_rgba(6,182,212,0.3)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md p-4 outline-hidden",
33+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
3434
className
3535
)}
3636
{...props}

0 commit comments

Comments
 (0)