Skip to content

Commit 8d39a6f

Browse files
committed
accordion bg and chevron tweak
1 parent 95e80c2 commit 8d39a6f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/ui/accordion.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ const AccordionTrigger = React.forwardRef<
2727
<AccordionPrimitive.Trigger
2828
ref={ref}
2929
className={cn(
30-
'flex flex-1 items-center justify-between p-2 rounded-lg text-md bg-neutral-500 text-white transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180',
30+
'flex flex-1 items-center justify-start p-2 rounded-lg text-md bg-neutral-400 text-white transition-all text-left [&[data-state=open]>svg]:rotate-180',
3131
className
3232
)}
3333
{...props}
3434
>
35+
<ChevronDown
36+
size={24}
37+
className="shrink-0 text-muted-foreground transition-transform duration-200"
38+
/>
3539
{children}
36-
<ChevronDown className="h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" />
3740
</AccordionPrimitive.Trigger>
3841
</AccordionPrimitive.Header>
3942
));

0 commit comments

Comments
 (0)