From 6185126ddb0d0f20c186336887a71ddc7dfd0356 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 23 Feb 2021 10:02:21 +0000 Subject: [PATCH] Make heading respect white space and reduce default margin --- .../standard-components/src/Heading.svelte | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/packages/standard-components/src/Heading.svelte b/packages/standard-components/src/Heading.svelte index 66775dc666..bf38ecf06e 100644 --- a/packages/standard-components/src/Heading.svelte +++ b/packages/standard-components/src/Heading.svelte @@ -4,21 +4,32 @@ const { styleable } = getContext("sdk") const component = getContext("component") - export let className = "" export let type export let text = "" {#if type === 'h1'} -

{text}

+

{text}

{:else if type === 'h2'} -

{text}

+

{text}

{:else if type === 'h3'} -

{text}

+

{text}

{:else if type === 'h4'} -

{text}

+

{text}

{:else if type === 'h5'} -
{text}
+
{text}
{:else if type === 'h6'} -
{text}
+
{text}
{/if} + +