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

100% Statements 10/10
80% Branches 8/10
100% Functions 2/2
100% Lines 10/10

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
    3142x
    42x
    42x
    42x

    42x

    42x

    42x

    123x

    123x

    42x

     import styled from 'styled-components'
    import { getSearchInputStyles } from '../Search/Search.styles'
    import { colors } from '../_styles/colors'
    import { spacing } from '../_styles/spacing'

    const inputHeight = 36

    export const StyledInput = styled.input`
      ${getSearchInputStyles()}

      padding-right: ${spacing.xxl}px;
    `

    export const StyledIcon = styled.div<{ disabled?: boolean }>`
      align-items: center;
      color: ${(p) => (p.disabled ? colors.gray70 : colors.gray45)};
      display: flex;
      height: ${inputHeight}px;
      justify-content: center;
      pointer-events: ${(p) => (p.disabled ? 'none' : 'auto')};
      position: absolute;
      right: 0;
      top: 0;
      width: ${inputHeight}px;
    `

    export const StyledTypeahead = styled.div`
      position: relative;
      width: 100%;
    `