nexxtway/react-rainbow

View on GitHub
src/components/VerticalSectionOverflow/styled/icon.js

Summary

Maintainability
A
1 hr
Test Coverage
import styled from 'styled-components';
import attachThemeAttrs from '../../../styles/helpers/attachThemeAttrs';

const StyledIcon = attachThemeAttrs(styled.svg)`
    color: ${props => props.palette.brand.main};
    margin-left: 0.5rem;
    margin-top: 0.625rem;
    transform: rotate(0deg);
    transition: transform 0.15s linear;
    ${props =>
        props.isExpanded &&
        `
            transform: rotate(-180deg);
            transition: transform 0.15s linear;
        `};
`;

export default StyledIcon;