Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
feat(leg): rotate arrow when element is open
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Frick committed Dec 14, 2017
1 parent f72b27c commit 7c55977
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lsg/patterns/element/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ const StyledIcon = styled(Icon)`
fill: ${colors.grey36.toString()};
width: 12px;
height: 12px;
transition: transform 0.2s;
${(props: StyledIconProps) => (props.open ? 'transform: rotate(90deg)' : '')};
`;

const Element: React.StatelessComponent<ElementProps> = props => {
Expand Down Expand Up @@ -162,6 +165,7 @@ const Element: React.StatelessComponent<ElementProps> = props => {
name={IconName.ArrowFill}
size={IconSize.XXS}
color={colors.grey70}
open={open}
/>
)}
{title}
Expand Down

0 comments on commit 7c55977

Please sign in to comment.