# All files / components/Radio/styles RadioInput.js

0% Statements 0/9
0% Branches 0/4
0% Functions 0/1
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

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

    export default styled.input`
      opacity: 0;
      position: absolute;
      z-index: -1000000;
      transition: all 0.2s ease;

      /* the check */

      &:checked + label::before {
        content: "${icons('checkmark')}";
      }

      /* the bubble */

      & + label::after {
        border-color: ${get('colors.border.dark')};
      }

      &:disabled + label::after {
        border-color: ${get('colors.border.disabled')};
      }

      &:disabled:checked + label::after {
        background-color: ${get('colors.background.disabledSelected')};
      }

      &:disabled:not(:checked) + label::after {
        background-color: ${get('colors.background.disabled')};
      }

      &:checked:not(:disabled) + label::after {
        background-color: ${get('colors.background.dark')};
      }

      &:not(:checked):not(:disabled) + label::after {
        background-color: ${get('colors.background.default')};
      }

    `;