From 4908a42c6e78deaf8ce42aaf0e91dc5e156b0779 Mon Sep 17 00:00:00 2001 From: Vincent Smedinga Date: Fri, 1 Dec 2023 15:35:09 +0100 Subject: [PATCH] fix: Apply regular font size to lists of links (#875) --- packages/react/src/Link/Link.tsx | 2 +- .../src/components/amsterdam/link.tokens.json | 8 ++++---- .../storybook-docs/src/typography.stories.mdx | 18 +++++++++--------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/react/src/Link/Link.tsx b/packages/react/src/Link/Link.tsx index c916ba3324..54c61c9f43 100644 --- a/packages/react/src/Link/Link.tsx +++ b/packages/react/src/Link/Link.tsx @@ -49,7 +49,7 @@ export const Link = forwardRef( className, )} > - {variant === 'inList' && } + {variant === 'inList' && } {children} ), diff --git a/proprietary/tokens/src/components/amsterdam/link.tokens.json b/proprietary/tokens/src/components/amsterdam/link.tokens.json index 7439b4c81a..f46d646404 100644 --- a/proprietary/tokens/src/components/amsterdam/link.tokens.json +++ b/proprietary/tokens/src/components/amsterdam/link.tokens.json @@ -44,12 +44,12 @@ "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.hover.text-decoration-line}" } }, "spacious": { - "font-size": { "value": "{amsterdam.typography.spacious.text-level.7.font-size}" }, - "line-height": { "value": "{amsterdam.typography.spacious.text-level.7.line-height}" } + "font-size": { "value": "{amsterdam.typography.spacious.text-level.6.font-size}" }, + "line-height": { "value": "{amsterdam.typography.spacious.text-level.6.line-height}" } }, "compact": { - "font-size": { "value": "{amsterdam.typography.compact.text-level.7.font-size}" }, - "line-height": { "value": "{amsterdam.typography.compact.text-level.7.line-height}" } + "font-size": { "value": "{amsterdam.typography.compact.text-level.6.font-size}" }, + "line-height": { "value": "{amsterdam.typography.compact.text-level.6.line-height}" } } }, "standalone": { diff --git a/storybook/storybook-docs/src/typography.stories.mdx b/storybook/storybook-docs/src/typography.stories.mdx index 4fdd9d88c3..58f7da7e41 100644 --- a/storybook/storybook-docs/src/typography.stories.mdx +++ b/storybook/storybook-docs/src/typography.stories.mdx @@ -13,15 +13,15 @@ Elk typografisch element zit op 1 zo’n niveau: titel, paragraaf, link, citaat, Ze zijn genummerd van 0 tot en met 6 – zo komen ze voor de diverse titels mooi overeen. Voorbeelden: -| Niveau | Componenten | -| -----: | :--------------------------------------------------- | -| 0 | Page heading | -| 1 | Heading 1 | -| 2 | Heading 2 | -| 3 | Heading 3, Blockquote | -| 4 | Heading 4, Large Paragraph | -| 5 | Paragraph, Button, Link behalve InList | -| 6 | Small Paragraph, InList Link, Form Label, Breadcrumb | +| Niveau | Componenten | +| -----: | :------------------------------------- | +| 0 | Page heading | +| 1 | Heading 1 | +| 2 | Heading 2 | +| 3 | Heading 3, Blockquote | +| 4 | Heading 4, Large Paragraph | +| 5 | Paragraph, List, Link, Button | +| 6 | Small Paragraph, Page Menu, Breadcrumb | ### Responsive