Skip to content

Commit

Permalink
[OPIK-230] [UX improvements] Improve accordion sections to ensure exp…
Browse files Browse the repository at this point in the history
…and discoverability
  • Loading branch information
andriidudar committed Oct 18, 2024
1 parent 9cad157 commit 00b6659
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/opik-frontend/src/components/ui/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const AccordionItem = React.forwardRef<
>(({ className, ...props }, ref) => (
<AccordionPrimitive.Item
ref={ref}
className={cn("mb-4", className)}
className={cn("border-b", className)}
{...props}
/>
));
Expand All @@ -26,7 +26,7 @@ const AccordionTrigger = React.forwardRef<
<AccordionPrimitive.Trigger
ref={ref}
className={cn(
"comet-body-s flex flex-1 items-center justify-between h-8 transition-all hover:text-primary-hover active:text-primary-active [&[data-state=open]>svg]:rotate-180",
"comet-body-s flex h-14 flex-1 items-center justify-between px-3 py-4 transition-all hover:text-primary-hover active:text-primary-active [&[data-state=open]>svg]:rotate-180",
className,
)}
{...props}
Expand All @@ -47,7 +47,7 @@ const AccordionContent = React.forwardRef<
className="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
{...props}
>
<div className={cn("py-0", className)}>{children}</div>
<div className={cn("pb-4", className)}>{children}</div>
</AccordionPrimitive.Content>
));

Expand Down

0 comments on commit 00b6659

Please sign in to comment.