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

Style active node in ShellBar #2474

Merged
merged 11 commits into from
Jan 18, 2022

Conversation

UlianaMunich
Copy link
Contributor

Fixes #2460

@stanleychh
Copy link
Contributor

Note: This PR converted TopNav.html to TopNav.svelte. We will adjust the conflicts after either one of our PR be merged first.

@UlianaMunich UlianaMunich changed the title fix issue with is-selected state for nodes in Shellbar Style active node in ShellBar Jan 12, 2022
@JohannesDoberer JohannesDoberer self-assigned this Jan 13, 2022
Comment on lines 606 to 628
<!-- {:else}
<li class="fd-menu__item">
<a
href="{getRouteLink(node)}"
title="{getNodeLabel(node)}"
class="fd-menu__link"
on:click|preventDefault="openMobileTopNavDropDown(node)"
data-testid="mobile-topnav-dropdown-category"
>
{#if node.icon} {#if hasOpenUIicon(node)}
<span
class="fd-top-nav__icon sap-icon {getSapIconStr(node.icon)}"
></span>
{:else}
<img
class="fd-top-nav__icon nav-icon"
src="{node.icon}"
>
{/if} {/if}
<span class="fd-list__title">{getNodeLabel(node)}</span>
</a>
</li>-->
<!-- {/if} -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems no need to keep this part. Please remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

above code does this, so I removed this commented code

@UlianaMunich UlianaMunich merged commit 5df5073 into SAP:master Jan 18, 2022
@UlianaMunich UlianaMunich deleted the 2460-selected-node-top-nav-bug branch January 18, 2022 15:19
@JohannesDoberer JohannesDoberer mentioned this pull request Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selected top nav node not marked
3 participants