feat(ui-shell): make company in Header slottable (#1764)

This commit is contained in:
Janos Lengyel 2023-07-13 14:33:48 +00:00 committed by GitHub
commit 9b3f014a0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 8 deletions

View file

@ -94,8 +94,10 @@
{...$$restProps}
on:click
>
{#if company}
<span class:bx--header__name--prefix="{true}">{company}&nbsp;</span>
{#if company || $$slots.company}
<span class:bx--header__name--prefix="{true}"
><slot name="company">{company}&nbsp;</slot></span
>
{/if}
<slot name="platform">{platformName}</slot>
</a>