From 54f663ae46751d0068f250ad3c73b2bea1e3cb9b Mon Sep 17 00:00:00 2001 From: Snorre Kim Date: Mon, 18 Nov 2024 17:28:01 +0100 Subject: [PATCH] Use new typography classes --- .../typography/font-families.mdx | 16 ++-- .../typography/font-weights.mdx | 10 +- .../uilib/elements/paragraph/Examples.tsx | 89 ++++++++++++++---- .../docs/uilib/elements/paragraph/demos.mdx | 57 +++++++++++- .../docs/uilib/elements/paragraph/info.mdx | 20 +--- .../src/docs/uilib/elements/span/Examples.tsx | 16 ++-- .../src/docs/uilib/elements/span/demos.mdx | 2 + .../src/docs/uilib/elements/span/info.mdx | 9 +- .../src/docs/uilib/typography/Examples.tsx | 8 +- .../src/docs/uilib/typography/font-size.mdx | 20 ++-- .../src/docs/uilib/typography/font-weight.mdx | 18 ++-- .../docs/uilib/typography/helper-classes.mdx | 68 ++++++++++++++ .../src/docs/uilib/typography/line-height.mdx | 21 +++-- .../src/elements/span/__tests__/Span.test.tsx | 44 +++++---- .../src/elements/typography/IngressDocs.ts | 4 +- .../src/elements/typography/LeadDocs.ts | 4 +- .../dnb-eufemia/src/elements/typography/P.tsx | 81 +++++++++++++++- .../src/elements/typography/PDocs.ts | 15 +++ .../src/elements/typography/Typography.tsx | 72 +++++++------- .../src/elements/typography/TypographyDocs.ts | 50 +++++++--- .../elements/typography/__tests__/P.test.tsx | 41 +++++--- .../src/elements/typography/style/_dnb-t.scss | 93 +++++++++++++++++++ .../typography/style/dnb-typography.scss | 9 +- .../typography/style/typography-mixins.scss | 14 ++- .../Visibility/__tests__/Visibility.test.tsx | 4 +- .../__snapshots__/Elements.test.js.snap | 89 +++++++++++++----- 26 files changed, 650 insertions(+), 224 deletions(-) create mode 100644 packages/dnb-design-system-portal/src/docs/uilib/typography/helper-classes.mdx create mode 100644 packages/dnb-eufemia/src/elements/typography/style/_dnb-t.scss diff --git a/packages/dnb-design-system-portal/src/docs/quickguide-designer/typography/font-families.mdx b/packages/dnb-design-system-portal/src/docs/quickguide-designer/typography/font-families.mdx index 7f23a6795aa..c37945d1d59 100644 --- a/packages/dnb-design-system-portal/src/docs/quickguide-designer/typography/font-families.mdx +++ b/packages/dnb-design-system-portal/src/docs/quickguide-designer/typography/font-families.mdx @@ -1,14 +1,15 @@ import { H3 } from '@dnb/eufemia/src' +# Font Families +