DocSpace-client/packages/asc-web-components/icon-button/styled-icon-button.js
2021-02-24 17:42:09 +03:00

22 lines
484 B
JavaScript

import styled from "styled-components";
const StyledOuter = styled.div`
width: ${(props) =>
props.size ? Math.abs(parseInt(props.size)) + "px" : "20px"};
cursor: ${(props) =>
props.isDisabled || !props.isClickable ? "default" : "pointer"};
line-height: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
svg {
&:not(:root) {
width: 100%;
height: 100%;
}
path {
fill: ${(props) => props.color};
}
}
`;
export default StyledOuter;