2019-09-26 11:11:28 +00:00
|
|
|
import styled from "styled-components";
|
2019-10-21 15:12:45 +00:00
|
|
|
import { Color } from "./Colors";
|
2019-09-26 11:11:28 +00:00
|
|
|
|
|
|
|
|
export type IconProps = {
|
|
|
|
|
width: number;
|
|
|
|
|
height: number;
|
|
|
|
|
color: Color;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const IconWrapper = styled.div<IconProps>`
|
2019-10-24 11:47:35 +00:00
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
2019-09-26 11:11:28 +00:00
|
|
|
svg {
|
|
|
|
|
width: ${props => props.width || props.theme.fontSizes[7]}px;
|
|
|
|
|
height: ${props => props.height || props.theme.fontSizes[7]}px;
|
|
|
|
|
path {
|
|
|
|
|
fill: ${props => props.color || props.theme.colors.textOnDarkBG};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|