Skip to content

Commit

Permalink
feat(ui5-breadcrumbs): Initial implementation (SAP#3166)
Browse files Browse the repository at this point in the history
  • Loading branch information
kineticjs committed Jun 15, 2021
1 parent 67913d3 commit 50a0aa6
Show file tree
Hide file tree
Showing 14 changed files with 808 additions and 0 deletions.
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
33 changes: 33 additions & 0 deletions packages/main/src/Breadcrumbs.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<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" onclick="this.getRootNode().host._onLinkClick(event)">
<slot name="{{this._individualSlot}}"></slot>
</li>
{{/each}}
<li class="ui5-breadcrumbs-current-location">
<ui5-label id="{{id}}-current-location" aria-current="page">{{currentLocation}}</ui5-label>
</li>
</ol>
<ol class="ui5-breadcrumbs-hidden-overflow">
{{#each _overflowingLinks}}
<li class="ui5-breadcrumbs-link-wrapper">
<slot name="{{this._individualSlot}}"></slot>
</li>
{{/each}}
</ol>
</nav>
Loading

0 comments on commit 50a0aa6

Please sign in to comment.