# All files / components/ToggleButton/styles StyledToggleButton.js

0% Statements 0/9
0% Branches 0/6
0% Functions 0/2
0% Lines 0/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
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49

     import styled, { css } from 'styled-components';
    import get from 'extensions/themeGet';

    export default styled.button`
      padding: ${get('spacing.small')} ${get('spacing.medium')};
      background: ${get('colors.background.default')};
      border-color: ${get('colors.border.dark')};
      border-width: ${get('thicknesses.wide')};
      border-style: solid;
      border-radius: 3px;
      cursor: pointer;

      color: ${get('colors.primary.dark')};
      font-weight: 700;
      text-align: center;
      text-transform: uppercase;
      cursor: pointer;
      user-select: none;
      transition: 0.2s ease;
      font-size: 14px;
      font-family: ${get('fonts.brand')};
      height: 53px;
      outline: unset;

      &:disabled {
        color: ${get('colors.text.disabled')};
        background-color: ${get('colors.background.disabled')};
        border-color: ${get('colors.border.disabled')};
        cursor: default;
      }

      &:hover:not(:disabled) {
        box-shadow: ${get('shadows.focusOutline')};
      }

      ${({ selected }) =>
        selected &&
        css`
          background: ${get('colors.primary.dark')};
          color: ${get('colors.text.inverted')};
          border-color: ${get('colors.primary.dark')};
          &:disabled {
            background-color: ${get('colors.background.disabledSelected')};
            border-color: ${get('colors.border.disabled')};
            color: ${get('colors.text.inverted')};
          }
        `};
    `;