Skip to content

Commit 4bd72bb

Browse files
Merge pull request #2282 from Tushar8466/fix/accordion-icon-toggle
fix: accordion expand icon now changes to × on toggle
2 parents e2c5706 + d4bfdbc commit 4bd72bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/Accordion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ const Accordion: React.FC<AccordionProps> = ({ items }) => {
110110
className={cn(
111111
'w-6 h-6 rounded-full border-2 border-border flex items-center justify-center transition-all duration-200 cursor-pointer',
112112
openItems.has(item.id)
113-
? 'border-primary bg-primary text-white rotate-45 dark:bg-[#bfdbfe] dark:text-black dark:border-[#bfdbfe]'
113+
? 'border-primary bg-primary text-white dark:bg-[#bfdbfe] dark:text-black dark:border-[#bfdbfe]'
114114
: 'hover:border-primary/50',
115115
)}
116116
>
117-
<span className='text-sm font-bold leading-none'>
117+
<span className='text-sm font-bold leading-none select-none'>
118118
{openItems.has(item.id) ? '×' : '+'}
119119
</span>
120120
</div>

0 commit comments

Comments
 (0)