Skip to content

Commit c031c33

Browse files
committed
fix chevron state
1 parent ae59e33 commit c031c33

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/components/expandable/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,11 @@ export function Expandable({
140140
>
141141
<summary className={`${styles['expandable-header']} callout-header`}>
142142
<div className={styles['expandable-title-container']}>
143-
<ChevronDownIcon
144-
className={`${styles['expandable-icon-expanded']} callout-icon`}
145-
/>
146-
<ChevronRightIcon
147-
className={`${styles['expandable-icon-collapsed']} callout-icon`}
148-
/>
143+
{isExpanded ? (
144+
<ChevronDownIcon className="callout-icon" />
145+
) : (
146+
<ChevronRightIcon className="callout-icon" />
147+
)}
149148
<div>{title}</div>
150149
</div>
151150
{copy && (

0 commit comments

Comments
 (0)