# All files / src/_styles arrows.ts

90% Statements 9/10
75% Branches 6/8
75% Functions 3/4
90% Lines 9/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
    31
    32
    33
    34
    35
    36
    37
    38
    3923x
    23x

    23x
    70x

    23x
    23x

    23x
    3x

    23x

     import { css } from 'styled-components'
    import { Color, colors } from './colors'

    export function arrowUp(size: number, color: Color) {
      return css`
        border-bottom: ${size}px solid ${colors[color]};
        border-left: ${size}px solid transparent;
        border-right: ${size}px solid transparent;
        border-top: 0;
      `
    }

    export function arrowDown(size: number, color: Color) {
      return css`
        border-bottom: 0;
        border-left: ${size}px solid transparent;
        border-right: ${size}px solid transparent;
        border-top: ${size}px solid ${colors[color]};
      `
    }

    export function arrowRight(size: number, color: Color) {
      return css`
        border-bottom: ${size}px solid transparent;
        border-left: ${size}px solid ${colors[color]};
        border-right: 0;
        border-top: ${size}px solid transparent;
      `
    }

    export function arrowLeft(size: number, color: Color) {
      return css`
        border-bottom: ${size}px solid transparent;
        border-left: 0;
        border-right: ${size}px solid ${colors[color]};
        border-top: ${size}px solid transparent;
      `
    }