Commit 71a246f2 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: expando icon direction (#3507)

parent 8de048bc
......@@ -109,17 +109,18 @@ export const Check = styled(icon(CheckIcon))`
`
export const Expando = styled(icon(ExpandoIcon))<{ open: boolean }>`
path {
.left,
.right {
transition: transform 0.25s ease-in-out;
will-change: transform;
}
&:first-child {
transform: ${({ open }) => open && 'translateX(-25%)'};
}
.left {
transform: ${({ open }) => (open ? undefined : 'translateX(-25%)')};
}
&:last-child {
transform: ${({ open }) => open && 'translateX(25%)'};
}
.right {
transform: ${({ open }) => (open ? undefined : 'translateX(25%)')};
}
`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment