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

100% Statements 8/8
100% Branches 6/6
100% Functions 0/0
100% Lines 8/8

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
    302x
    2x

    2x

    2x

    2x

    2x

    2x

    2x

     import styled from 'styled-components'
    import {
      getTypographyIntent,
      typographyWeights,
    } from '../Typography/Typography.styles'
    import { spacing } from '../_styles/spacing'

    export const optionMinHeight = 32
    /** Large enough to fit one group and one item */
    export const defaultMenuHeight = 64

    export const StyledOptions = styled.div``

    export const StyledItem = styled.div`
      ${getTypographyIntent('body')};

      padding: ${spacing.xs}px ${spacing.md}px;
      cursor: pointer;
      list-style-type: none;
    `

    export const StyledGroup = styled.div`
      ${getTypographyIntent('body')};

      padding: ${spacing.md}px ${spacing.md}px ${spacing.xs}px;
      font-weight: ${typographyWeights.semibold};
      background: white;
      list-style-type: none;
    `