From d94ff81e0e69846d4db3be8587e3b59a4d2c8c70 Mon Sep 17 00:00:00 2001 From: Dean Date: Wed, 20 Apr 2022 09:23:09 +0100 Subject: [PATCH] Simplified modal header construction --- packages/bbui/src/Modal/ModalContent.svelte | 24 ++++++++------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/packages/bbui/src/Modal/ModalContent.svelte b/packages/bbui/src/Modal/ModalContent.svelte index 4c608f1025..9cdaaa83d2 100644 --- a/packages/bbui/src/Modal/ModalContent.svelte +++ b/packages/bbui/src/Modal/ModalContent.svelte @@ -65,23 +65,17 @@ aria-modal="true" >
- {#if title} -

+

+ {#if title} {title} -

- {:else if $$slots.header} -

+ {:else if $$slots.header} -

- {/if} + {/if} + {#if showDivider && (title || $$slots.header)} {/if}