# All files / src/FileSelect/FileSelectDropzone FileSelectDropzone.styles.ts

100% Statements 12/12
80% Branches 8/10
100% Functions 2/2
100% Lines 12/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
    38
    39
    40
    41
    42
    43
    443x
    3x
    3x
    3x

    3x

    3x
    32x
    32x

    3x
    32x
    32x

    3x

     import styled from 'styled-components'
    import { Dropzone } from '../../Dropzone/Dropzone'
    import { colors } from '../../_styles/colors'
    import { spacing } from '../../_styles/spacing'

    export const dropzoneContainerAttr = 'data-dropzone-container'

    export const StyledDropzone = styled(Dropzone)<{ hidden: boolean }>`
      ${({ hidden }) =>
        hidden &&
        `
        [${dropzoneContainerAttr}] {
          align-self: flex-start;
          margin-bottom: ${spacing.xs}px;

          &,
          &:hover {
            width: auto;
            min-height: auto;
            border: none;
            padding: 0;
            background: transparent;
            cursor: default;
          }
        }

      `}
    `

    export const StyledDropzoneMessage = styled.span<{ error: boolean }>`
      ${({ error }) =>
        error &&
        `
        color: ${colors.gray15};
      `}
    `

    export const StyledUploadButtonWrapper = styled.div`
      display: block;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: ${spacing.sm}px;
    `