Skip to content

Commit

Permalink
fix(Collapse): hardcoded icon classes (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjitrosch committed Apr 3, 2023
1 parent 4c20ea6 commit 2b3a2a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Collapse/Collapse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const Collapse = React.forwardRef<HTMLDivElement, CollapseProps>(
'collapse',
className,
clsx({
[`collapse-${icon}`]: icon,
'collapse-arrow': icon === 'arrow',
'collapse-plus': icon === 'plus',
'collapse-open': open === true,
'collapse-close': open === false,
})
Expand Down

0 comments on commit 2b3a2a7

Please sign in to comment.