We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae59e33 commit c031c33Copy full SHA for c031c33
src/components/expandable/index.tsx
@@ -140,12 +140,11 @@ export function Expandable({
140
>
141
<summary className={`${styles['expandable-header']} callout-header`}>
142
<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
+ {isExpanded ? (
+ <ChevronDownIcon className="callout-icon" />
+ ) : (
+ <ChevronRightIcon className="callout-icon" />
+ )}
149
<div>{title}</div>
150
</div>
151
{copy && (
0 commit comments