Skip to content

Commit

Permalink
feat(Dropdown): Applying theme spacing to arrow position
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsilva committed Jun 7, 2019
1 parent aa3f9d6 commit 5cbf386
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions components/Dropdown/Dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,20 @@ const ArrowDown = styled(Icon).attrs({
!selectedItem &&
`
color: ${neutral700};
`};
`}
`;

const InputArrowDown = styled(ArrowDown)`
position: absolute;
top: 12px;
right: 14px;
${({
theme: {
spacing: { small, medium },
},
}) => `
top: ${small}px;
right: ${medium * 0.875}px;
`}
`;

const DropList = styled.ul`
Expand Down

0 comments on commit 5cbf386

Please sign in to comment.