Skip to content

Commit 489827c

Browse files
palkerecsenyizzacharo
authored andcommitted
fix: rely on CSS for accordion icon rotation
* Ensures icons rotate based on CSS instead of a JS icon name change when accordions are opened/closed * Related to inveniosoftware/invenio-app-rdm#3059
1 parent 8b7e578 commit 489827c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/forms/AccordionField.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ export class AccordionField extends Component {
188188
includesPaths={includesPaths}
189189
severityChecks={severityChecks}
190190
/>
191-
{/* Toggle Icon */}
192-
<Icon name={activeIndex === 0 ? "angle down" : "angle right"} />
191+
<Icon name="caret right" />
193192
</Accordion.Title>
194193
<Accordion.Content active={activeIndex === 0}>
195194
<Container>{children}</Container>

0 commit comments

Comments
 (0)