diff --git a/CHANGELOG.md b/CHANGELOG.md index 45fdb6bc..f1b4a356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Fixes package name in documentation - Fixes Intro code chunk to be up to date - Changes snake_case variables to camelCase +- Add Navbar case for no projectUrl with story documentation ## v0.7.1 diff --git a/src/lib/Navbar/Navbar.stories.svelte b/src/lib/Navbar/Navbar.stories.svelte index 91e6090e..d27caa7f 100644 --- a/src/lib/Navbar/Navbar.stories.svelte +++ b/src/lib/Navbar/Navbar.stories.svelte @@ -35,7 +35,14 @@ + + diff --git a/src/lib/Navbar/Navbar.svelte b/src/lib/Navbar/Navbar.svelte index 39a15dc8..8bb299f0 100644 --- a/src/lib/Navbar/Navbar.svelte +++ b/src/lib/Navbar/Navbar.svelte @@ -12,7 +12,7 @@ * URL to link to from the title * @type {string} */ - export let projectUrl; + export let projectUrl = ""; /** * Brand to use for the logo @@ -40,9 +40,13 @@ {#if title} + {#if projectUrl} + {:else} + + {/if} {/if}