# All files / src/PillSelect PillSelect.styles.ts

83.33% Statements 10/12
66.66% Branches 8/12
0% Functions 0/1
83.33% Lines 10/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    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
    388x
    8x
    8x
    8x
    8x

    8x

    8x

    8x

    8x

    8x

     import styled, { css } from 'styled-components'
    import { Pill } from '../Pill/Pill'
    import { colors } from '../_styles/colors'
    import { getEllipsis } from '../_styles/mixins'
    import { spacing } from '../_styles/spacing'

    const checkedIconPlaceholderWidth = 32

    export const PillSelectOptionWrapper = styled.div`
      display: flex;
      align-items: center;
      justify-content: space-between;
    `

    export const PillSelectCheckedContainer = styled.div`
      align-items: center;
      color: ${colors.blue50};
      display: inline-flex;
      padding-left: ${spacing.sm}px;
      width: ${checkedIconPlaceholderWidth}px;
    `

    export const PillSelectLabel = styled(Pill)`
      ${getEllipsis}
    `

    export const PillSelectLabelWrapper = styled.div<{ disabled?: boolean }>`
      display: flex;
      max-width: 100%;
      pointer-events: auto;

      ${({ disabled }) =>
        disabled &&
        css`
          pointer-events: none;
        `}
    `