Skip to content

Commit

Permalink
[~] Fix color in styled component
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Vash committed Jul 21, 2019
1 parent 936ef4a commit 85c37d0
Show file tree
Hide file tree
Showing 2 changed files with 180 additions and 54 deletions.
7 changes: 7 additions & 0 deletions demo/statelessfunctionalreact.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
const StyledIcon = styled(Icon)`
svg {
height: calc(${({ dimension }) => dimension || '24px'} + 3vw);
width: calc(${({ dimension }) => dimension || '24px'} + 3vw);
}
`;

// I use this syntax when my component fits on one line
const ListItem = props => <li className="list-item">{props.item.name}</li>

Expand Down
Loading

0 comments on commit 85c37d0

Please sign in to comment.