Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper styling for App Switcher with one entity #2466

Merged
merged 8 commits into from
Jan 13, 2022
16 changes: 12 additions & 4 deletions core/src/navigation/LogoTitle.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,17 @@
{/if}{:else}
<div class="fd-popover">
<div class="fd-popover__control" on:click|stopPropagation="{() => {}}">
{#if addNavHrefForAnchor} {#if appSwitcherItems && appSwitcherItems.length > 0} {#each
appSwitcherItems as item} {#if item === selectedItem && hasValidLink(item,
pathParams)}
{#if addNavHrefForAnchor} {#if appSwitcherItems && appSwitcherItems.length === 1}
<a
href="{getRouteLink(appSwitcherItems[0])}"
class="fd-shellbar__title lui-shellbar-single-app-title"
>
<span>
{$getTranslation(appSwitcherItems[0].title)}
</span>
</a>
{/if} {#if appSwitcherItems && appSwitcherItems.length > 1} {#each appSwitcherItems as
item} {#if item === selectedItem && hasValidLink(item, pathParams)}
<a
href="{getRouteLink(item)}"
class="fd-button fd-button--transparent fd-button--menu fd-shellbar__button--menu lui-app-switch"
Expand All @@ -59,7 +67,7 @@
>
<i class="sap-icon sap-icon--megamenu fd-shellbar__button--icon"></i>
</a>
{/if} {/each} {/if} {#if appSwitcherItems.length > 0 && !selectedItem}
{/if} {/each} {/if} {#if appSwitcherItems.length > 1 && !selectedItem}
<a
href="/"
class="fd-button fd-button--transparent fd-button--menu fd-shellbar__button--menu lui-app-switch"
Expand Down