fix(ui): render navbar brand prop outside slot
This commit is contained in:
@@ -171,7 +171,6 @@ size: string = "default"
|
||||
</div>
|
||||
|
||||
<div class="wrn-navbar__main">
|
||||
<slot name="brand">
|
||||
{#if brand.logo || brand.icon || brand.label || brand.description}
|
||||
<a class="wrn-navbar__brand" href="{brand.href || '/'}" aria-label="{brand.ariaLabel || brand.label || label}">
|
||||
{#if brand.logo}
|
||||
@@ -188,7 +187,7 @@ size: string = "default"
|
||||
{/if}
|
||||
</a>
|
||||
{/if}
|
||||
</slot>
|
||||
<slot name="brand" />
|
||||
|
||||
<div class="wrn-navbar__collapse {mobileOpen ? 'is-open' : ''}">
|
||||
<nav class="wrn-navbar__menus" aria-label="{label}" data-wrn-roving="horizontal">
|
||||
|
||||
Reference in New Issue
Block a user