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

feat(ui5-breadcrumbs): Initial implementation #3435

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/main/bundle.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import "./dist/features/ColorPaletteMoreColors.js";
import Avatar from "./dist/Avatar.js";
import AvatarGroup from "./dist/AvatarGroup.js";
import Badge from "./dist/Badge.js";
import Breadcrumbs from "./dist/Breadcrumbs.js";
import BusyIndicator from "./dist/BusyIndicator.js";
import Button from "./dist/Button.js";
import Card from "./dist/Card.js";
Expand Down
41 changes: 41 additions & 0 deletions packages/main/src/Breadcrumbs.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<nav class="ui5-breadcrumbs-root"
aria-label="{{_accessibleNameText}}"
aria-haspopup="{{_ariaHasPopup}}">
<ol @focusin="{{_onfocusin}}"
@keydown="{{_onkeydown}}"
@keyup="{{_onkeyup}}">

<li class="ui5-breadcrumbs-overflow-opener"
?hidden="{{_isOverflowEmpty}}">
<ui5-link @click="{{_toggleRespPopover}}"
aria-label="{{_overflowAccessibleNameText}}">
<ui5-icon name="slim-arrow-down"
title="{{_overflowAccessibleNameText}}"></ui5-icon>
</ui5-link>
</li>

{{#each _nonOverflowingLinks}}
<li class="ui5-breadcrumbs-link-wrapper" @click="{{../_onLinkClick}}">
<slot name="{{this._individualSlot}}"></slot>
</li>
{{/each}}

{{#if _endsWithCurrentLocationLabel}}
<li class="ui5-breadcrumbs-current-location">
<ui5-label id="{{id}}-current-location"
wrapping-type="Normal"
aria-current="page">{{_endingLabelText}}
</ui5-label>
</li>
{{/if}}
</ol>
<!-- we still render the slots for the overflowing links in a hidden area
=> we are able this way to monitor changes in their size and visibility -->
<ol class="ui5-breadcrumbs-hidden-overflow">
{{#each _overflowingLinks}}
<li class="ui5-breadcrumbs-link-wrapper">
<slot name="{{this._individualSlot}}"></slot>
</li>
{{/each}}
</ol>
</nav>
Loading