# All files / components/RadioGroup/styles RadioGroupButtonContainer.js

0% Statements 0/5
0% Branches 0/4
0% Functions 0/1
0% Lines 0/1

    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

     import styled from 'styled-components';

    export default styled.div`
      flex: 1 1 auto;
      position: relative;
      display: inline-block;

      &:first-of-type > label {
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
      }

      &:last-of-type > label {
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
      }

      &:not(.disabled) + & > label {
        border-left: 0;
      }

      &.disabled:not(:last-of-type) > label {
        border-right: 0;
      }
    `;