Skip to content

Commit 483b499

Browse files
committed
chore: add-ids-accordion
1 parent b6a0fc1 commit 483b499

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/lib/accordion/accordion-item.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,24 @@ const AccordionItem: React.FC<AccordionItemProps> = ({
2525
return (
2626
<div className="my-2">
2727
<Button
28+
id="expand-button"
2829
className={cn(
2930
"bg-klerosUIComponentsWhiteBackground border-klerosUIComponentsStroke border",
3031
"hover-medium-blue hover-short-transition hover:cursor-pointer",
31-
"rounded-[3px] px-8 py-[11.5px]",
32+
"rounded-[3px] px-4 py-[11.5px] md:px-8",
3233
"flex w-full items-center justify-between",
3334
)}
3435
onPress={() => setExpanded(expanded ? -1 : index)}
3536
>
3637
{title}
3738
{expanded ? (
38-
<Minus className={cn("fill-klerosUIComponentsPrimaryText size-4")} />
39+
<Minus
40+
className={cn("fill-klerosUIComponentsPrimaryText size-4 shrink-0")}
41+
/>
3942
) : (
40-
<Plus className={cn("fill-klerosUIComponentsPrimaryText size-4")} />
43+
<Plus
44+
className={cn("fill-klerosUIComponentsPrimaryText size-4 shrink-0")}
45+
/>
4146
)}
4247
</Button>
4348
<div
@@ -47,7 +52,7 @@ const AccordionItem: React.FC<AccordionItemProps> = ({
4752
"transition-[height] duration-(--klerosUIComponentsTransitionSpeed) ease-initial",
4853
)}
4954
>
50-
<div className="p-8" ref={ref}>
55+
<div className="p-4 md:p-8" id="body-wrapper" ref={ref}>
5156
{body}
5257
</div>
5358
</div>

0 commit comments

Comments
 (0)