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

feat(lsg): bigger click-area for open/close icon on page-element #62

Merged
merged 1 commit into from
Dec 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lsg/patterns/element/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const StyledElementLabel = styled.div`
background: ${colors.grey90.toString()};
}


${(props: StyledElementLabelProps) =>
props.active
? `
Expand Down Expand Up @@ -123,10 +122,11 @@ const StyledElementChild = styled.div`

const StyledIcon = styled(Icon)`
position: absolute;
left: ${getSpace(Size.XS)}px;
left: 0;
fill: ${colors.grey70.toString()};
width: 12px;
height: 12px;
padding: ${getSpace(Size.XS)}px;
transition: transform 0.2s;

${(props: StyledIconProps) => (props.open ? 'transform: rotate(90deg)' : '')};
Expand Down