Skip to content

Commit

Permalink
feat(ui5-breadcrumbs): Initial implementation
Browse files Browse the repository at this point in the history
Fixes SAP#3166
  • Loading branch information
kineticjs committed Jul 13, 2021
1 parent 97a8713 commit 64b55d5
Show file tree
Hide file tree
Showing 19 changed files with 1,468 additions and 1 deletion.
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
39 changes: 39 additions & 0 deletions packages/main/src/Breadcrumbs.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<nav class="ui5-breadcrumbs-root"
aria-label="{{_accessibleNameText}}">
<ol @focusin="{{_onfocusin}}"
@keydown="{{_onkeydown}}"
@keyup="{{_onkeyup}}">

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

{{#each _visibleNonOverflowingItems}}
<li class="ui5-breadcrumbs-link-wrapper" @click="{{../_onLinkClick}}">
<ui5-link
href="{{this.href}}"
target="{{this.target}}"
id="{{this._id}}-link"
aria-label="{{this.accessibleName}}"
data-ui5-stable="{{this.stableDomRef}}">
{{this.innerText}}
</ui5-link>
</li>
{{/each}}

{{#if _endsWithCurrentLocation}}
<li class="ui5-breadcrumbs-current-location">
<ui5-label id="{{id}}-current-location"
aria-current="page">
{{_currentLocationText}}
</ui5-label>
</li>
{{/if}}
</ol>
</nav>
Loading

0 comments on commit 64b55d5

Please sign in to comment.