Skip to content

Commit

Permalink
[DEV-11281] Removed redundant braces, updated transform transition on…
Browse files Browse the repository at this point in the history
… caret icon
  • Loading branch information
fgyimah committed Aug 11, 2023
1 parent b212c59 commit 0b79ac2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

.icon {
fill: $white;
transition: transform 0.3s ease-in;
transition: transform 0.1s ease-in-out;

&.open {
transform: rotate(180deg);
Expand Down
12 changes: 5 additions & 7 deletions packages/slate-editor/src/components/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ export function Accordion({ title, children }: Props) {
<div className={styles.Accordion}>
<button className={styles.button} onClick={toggleOpen}>
<span>{title}</span>
{
<Caret
className={classNames(styles.icon, {
[styles.open]: isOpen,
})}
/>
}
<Caret
className={classNames(styles.icon, {
[styles.open]: isOpen,
})}
/>
</button>
<div
className={classNames(styles.content, {
Expand Down

0 comments on commit 0b79ac2

Please sign in to comment.