# All files / components/Accordion/styles AccordionArrow.js

66.67% Statements 2/3
0% Branches 0/2
0% Functions 0/1
66.67% Lines 2/3

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29

    4x

    4x

     import Icon from 'components/Icon';
    import styled from 'styled-components';
    import get from 'extensions/themeGet';

    const AccordionArrow = styled(Icon)`
      color: ${get('colors.gray.default')};
      margin: auto 1em auto auto;
      transform: ${({ isExpanded }) =>
        isExpanded ? 'rotate(90deg)' : 'rotate(0)'};
      transition: 0.2s all ease;
      font-weight: 100;

      &:after {
        padding-top: 0;
        padding-bottom: 0;
        font-size: 1.5em;
      }
    `;

    AccordionArrow.Small = AccordionArrow.extend`
      color: ${get('colors.text.default')};

      &:after {
        font-size: 1em;
      }
    `;

    export default AccordionArrow;