From 551472f003851bd310d68bbf9e6aadb862086eba Mon Sep 17 00:00:00 2001 From: Rachel Marconi Date: Fri, 19 Apr 2024 13:53:38 -0400 Subject: [PATCH 1/2] added case for no projectUrl --- src/lib/Navbar/Navbar.stories.svelte | 11 +++++++++-- src/lib/Navbar/Navbar.svelte | 6 +++++- 2 files changed, 14 insertions(+), 3 deletions(-) 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} From 6e2d031183b39ab91895f4c831aa86c0b22cf942 Mon Sep 17 00:00:00 2001 From: Rachel Marconi Date: Fri, 19 Apr 2024 13:58:55 -0400 Subject: [PATCH 2/2] added navbar tweak to changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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