How to use the @paprika/stylers.lineHeightValue function in @paprika/stylers

To help you get started, we’ve selected a few @paprika/stylers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github acl-services / paprika / packages / Button / src / Button.styles.js View on Github external
export const iconStyles = props => css`
  align-items: center;
  color: ${getIconColor(props)};
  display: inline-flex;
  justify-content: center;
  margin: 0 ${tokens.spaceSm} 0 0;

  svg {
    vertical-align: -${(stylers.lineHeightValue(-1) - 1) / 2}em;
  }

  ${props.isPending
    ? css`
        animation: ${spinKeyframes} 2s infinite linear;
      `
    : ""}

  ${props.isDropdown ? `margin:0 0 0 ${tokens.spaceSm};` : ""}
`;