diff --git a/src/lib/Headline/Headline.svelte b/src/lib/Headline/Headline.svelte index 62c1a28..d827a81 100644 --- a/src/lib/Headline/Headline.svelte +++ b/src/lib/Headline/Headline.svelte @@ -15,7 +15,7 @@ export let description = null; /** - * Optional eyebrow to be displayed above the headline. + * Optional eyebrow to be displayed above the headline; determines eyebrow link. * @type {string | null} */ export let eyebrow = null; @@ -55,32 +55,34 @@
{#if $$slots.eyebrow} {:else if eyebrow} -

{eyebrow}

+ {#if eyebrow.toLowerCase() == "data tool"} +

{eyebrow}

+ {:else if eyebrow.toLowerCase() == "story"} +

{eyebrow}

+ {:else} +

{eyebrow}

+ {/if} {/if} {#if $$slots.headline} {:else}

{headline}

{/if} {#if $$slots.description} {:else if description}

{description}

{/if} {#if $$slots.date} {:else if date}

@@ -91,8 +93,6 @@

{/if}
@@ -148,4 +148,8 @@ font-size: var(--font-size-small); text-transform: uppercase; } + .headline-wrap p.headline-eyebrow:hover { + text-decoration: underline; + cursor: pointer; + }