From 806bd2b34380b97a99418977d77875834cbbd5a6 Mon Sep 17 00:00:00 2001 From: James Mockett <1166188+jamesmockett@users.noreply.github.com> Date: Wed, 27 Mar 2024 17:18:19 +0000 Subject: [PATCH] Lowercase 'italic' in tokens so it satisfies type --- libs/@guardian/design-tokens/src/tokens.json | 2 +- libs/@guardian/design-tokens/tokens.d.ts | 2 +- libs/@guardian/design-tokens/tokens.js | 2 +- libs/@guardian/design-tokens/variables.css | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/@guardian/design-tokens/src/tokens.json b/libs/@guardian/design-tokens/src/tokens.json index 704d2bdb0..e636d7a3f 100644 --- a/libs/@guardian/design-tokens/src/tokens.json +++ b/libs/@guardian/design-tokens/src/tokens.json @@ -1537,7 +1537,7 @@ "fontSize": "{typography.fontSize.14}", "lineHeight": "{typography.lineHeight.regular}", "fontWeight": "{typography.fontWeight.regular}", - "fontStyle": "Italic" + "fontStyle": "italic" } }, "textSansItalic15": { diff --git a/libs/@guardian/design-tokens/tokens.d.ts b/libs/@guardian/design-tokens/tokens.d.ts index 6cc89de9d..2cf19f477 100644 --- a/libs/@guardian/design-tokens/tokens.d.ts +++ b/libs/@guardian/design-tokens/tokens.d.ts @@ -1444,7 +1444,7 @@ export declare const tokens: { readonly fontSize: '14px'; readonly lineHeight: 1.3; readonly fontWeight: 400; - readonly fontStyle: 'Italic'; + readonly fontStyle: 'italic'; }; readonly textSansItalic15: { readonly fontFamily: readonly [ diff --git a/libs/@guardian/design-tokens/tokens.js b/libs/@guardian/design-tokens/tokens.js index 91ae76d49..24b562efe 100644 --- a/libs/@guardian/design-tokens/tokens.js +++ b/libs/@guardian/design-tokens/tokens.js @@ -1440,7 +1440,7 @@ export const tokens = { fontSize: '14px', lineHeight: 1.3, fontWeight: 400, - fontStyle: 'Italic', + fontStyle: 'italic', }, textSansItalic15: { fontFamily: [ diff --git a/libs/@guardian/design-tokens/variables.css b/libs/@guardian/design-tokens/variables.css index 57492a7c1..ac42bf5e7 100644 --- a/libs/@guardian/design-tokens/variables.css +++ b/libs/@guardian/design-tokens/variables.css @@ -1410,7 +1410,7 @@ --source-typography-presets-textSansItalic14-font-size: var( --source-typography-fontSize-14 ); - --source-typography-presets-textSansItalic14-font-style: Italic; + --source-typography-presets-textSansItalic14-font-style: italic; --source-typography-presets-textSansItalic14-font-weight: var( --source-typography-fontWeight-regular );