How to use the @tds/shared-typography.medium function in @tds/shared-typography

To help you get started, we’ve selected a few @tds/shared-typography 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 telus / tds-core / packages / Text / __tests__ / Text.spec.jsx View on Github external
it('can be sized', () => {
      let text = doShallowStyled({ size: 'medium' })
      expect(text).toHaveStyleRule('font-size', typography.medium.fontSize)

      text = doShallowStyled({ size: 'small' })
      expect(text).toHaveStyleRule('font-size', typography.small.fontSize)
    })