How to use the @zendeskgarden/react-theming.DEFAULT_THEME.fontSizes function in @zendeskgarden/react-theming

To help you get started, we’ve selected a few @zendeskgarden/react-theming 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 zendeskgarden / react-components / packages / typography / src / styled / StyledFont.spec.js View on Github external
it('renders small size', () => {
      const { container } = render();

      expect(container.firstChild).toHaveStyleRule('font-size', DEFAULT_THEME.fontSizes.sm);
    });
github zendeskgarden / react-components / packages / typography / src / styled / StyledFont.spec.js View on Github external
it('renders large size', () => {
      const { container } = render();

      expect(container.firstChild).toHaveStyleRule('font-size', DEFAULT_THEME.fontSizes.lg);
    });