Constrain icon size to container

This commit is contained in:
Fred Carlsen
2019-02-25 15:22:48 +01:00
parent c6cdea77b6
commit f6c6cbc343

View File

@@ -64,6 +64,8 @@ const StyledIcon = styled.figure<IconProps>`
margin: ${props => getCSSPadding(props.margin)};
display: inline-block;
flex-shrink: 0;
max-height: 100%;
max-width: 100%;
svg {
width: 100%;