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

Commit

Permalink
feat(lsg): invert icon color when element item is active
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Frick committed Dec 14, 2017
1 parent 7c55977 commit 6d83b8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lsg/patterns/element/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ const StyledElementChild = styled.div`
const StyledIcon = styled(Icon)`
position: absolute;
left: ${getSpace(Size.XS)}px;
fill: ${colors.grey36.toString()};
fill: ${colors.grey70.toString()};
width: 12px;
height: 12px;
transition: transform 0.2s;
${(props: StyledIconProps) => (props.open ? 'transform: rotate(90deg)' : '')};
${(props: StyledIconProps) => (props.active ? 'fill: white' : '')};
`;

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

0 comments on commit 6d83b8f

Please sign in to comment.