# All files / src/Tooltip Tooltip.styled.ts

66.67% Statements 4/6
100% Branches 0/0
0% Functions 0/2
100% Lines 4/4

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
    211x

    1x

    1x

    1x

     import { themeGet } from '@fluent-ui/styles'
    import { Style, Styles } from 'jss'
    import { Theme, lighten } from '../styles'
    import { TooltipClassProps } from './Tooltip.type'

    const root = (theme: Theme): Style => ({
      backgroundColor: lighten(themeGet('colors.black.default', '#000')(theme), 0.6),
      color: themeGet('colors.white.default', '#fff')(theme),
      fontSize: '0.625rem',
      fontWeight: 500,
      padding: '4px 8px',
      margin: '6px 0',
      maxWidth: 320,
      borderRadius: 2,
      zIndex: 10001
    })

    export const styles = (theme: Theme): Styles<TooltipClassProps> => ({
      root: root(theme)
    })