How to use the @tds/shared-typography.boldFont 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 bold', () => {
      let text = doShallowStyled({ bold: false })
      expect(text).not.toHaveStyleRule('font-weight', typography.boldFont.fontWeight.toString())

      text = doShallowStyled({ bold: true })
      expect(text).toHaveStyleRule('font-weight', typography.boldFont.fontWeight.toString())
    })
github telus / tds-core / packages / Text / __tests__ / Text.spec.jsx View on Github external
it('can be bold', () => {
      let text = doShallowStyled({ bold: false })
      expect(text).not.toHaveStyleRule('font-weight', typography.boldFont.fontWeight.toString())

      text = doShallowStyled({ bold: true })
      expect(text).toHaveStyleRule('font-weight', typography.boldFont.fontWeight.toString())
    })
github telus / tds-core / packages / Paragraph / Paragraph.jsx View on Github external
const paragraphBold = ({ bold, size }) => (bold ? typography.boldFont : typography[`${size}Font`])
const paragraphAlign = ({ align }) => ({
github telus / tds-core / packages / Text / Text.jsx View on Github external
const textBold = ({ bold, size }) => (bold ? typography.boldFont : typography[`${size}Font`])
const textBlock = ({ block }) => (block ? typography.blockText : undefined)