From 4767578aa44895f1562c8868cf96bd68d85188b3 Mon Sep 17 00:00:00 2001 From: Prasanta Kumar Dutta <7580745+pkd2512@users.noreply.github.com> Date: Sat, 2 Sep 2023 21:04:01 +0530 Subject: [PATCH] edits for #116 --- .../DatawrapperChart/DatawrapperChart.svelte | 2 +- .../GraphicBlock/GraphicBlock.svelte | 97 +++++++++---------- src/components/Headline/Headline.svelte | 2 +- src/components/NoteText/NoteText.svelte | 5 +- .../SiteHeadline/SiteHeadline.svelte | 2 +- src/scss/reset/_typography.scss | 32 +++--- src/scss/tokens/text/mixins/_text-role.scss | 9 +- 7 files changed, 74 insertions(+), 75 deletions(-) diff --git a/src/components/DatawrapperChart/DatawrapperChart.svelte b/src/components/DatawrapperChart/DatawrapperChart.svelte index 12bd9bcb..faaa22f6 100644 --- a/src/components/DatawrapperChart/DatawrapperChart.svelte +++ b/src/components/DatawrapperChart/DatawrapperChart.svelte @@ -51,7 +51,7 @@ * of the text well. Can't ever be wider than `width`. * @type {string} */ - export let textWidth: ContainerWidth | null = null; + export let textWidth: ContainerWidth | null = 'normal'; let frameElement; diff --git a/src/components/GraphicBlock/GraphicBlock.svelte b/src/components/GraphicBlock/GraphicBlock.svelte index 5520ddd3..89490fa2 100644 --- a/src/components/GraphicBlock/GraphicBlock.svelte +++ b/src/components/GraphicBlock/GraphicBlock.svelte @@ -41,7 +41,7 @@ * of the text well. Can't ever be wider than `width`. * @type {string} */ - export let textWidth: ContainerWidth | null = null; + export let textWidth: ContainerWidth | null = 'normal'; /** * Title of the graphic @@ -81,55 +81,53 @@ ariaLabel="{ariaLabel}" class="graphic fmy-5 {cls}" > -