Skip to content

Commit

Permalink
feat(breadcrumbs): removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Fernandes committed Dec 6, 2024
1 parent a7dd25e commit e79c4cb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions projects/angular/clarity.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,6 @@ export enum ClrAxis {

// @public (undocumented)
export class ClrBreadcrumbItem {
// (undocumented)
delimiter: string;
// (undocumented)
static ɵcmp: i0.ɵɵComponentDeclaration<ClrBreadcrumbItem, "clr-breadcrumb-item", never, {}, {}, never, ["*"], false, never>;
// (undocumented)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
.clr-breadcrumb-item {
display: flex;
align-items: center;
min-height: 24px; //tokens.$cds-global-space-24; --> TO DO: Add token to clarity core
min-height: mixins.baselinePx(24);
font-family: breadcrumb-variables.$clr-breadcrumb-font-family;
color: breadcrumb-variables.$clr-breadcrumb-link-color;
@include mixins.generate-typography-token('SECONDARY-13-RG-CPT');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
@include mixins.exports('breadcrumbs.properties') {
:root [cds-theme] {
--clr-breadcrumb-link-color: #{tokens.$cds-alias-object-interaction-background-highlight};
// --clr-breadcrumb-item-height: #{tokens.$cds-global-space-24};
--clr-breadcrumb-item-space: #{tokens.$cds-global-space-8};
--clr-breadcrumb-font-weight: #{tokens.$cds-global-typography-font-weight-regular};
--clr-breadcrumb-font-size: #{tokens.$cds-alias-typography-secondary-font-size};
Expand Down
4 changes: 2 additions & 2 deletions projects/angular/src/layout/breadcrumbs/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div role="list" class="clr-breadcrumb-menu">
<ng-template [ngIf]="items?.length">
<ng-container *ngIf="items?.length">
<clr-breadcrumb-item *ngIf="items.length > max && !isExpanded">
<span (click)="expand()" (keydown)="expand()" class="clr-breadcrumb-expand">
<cds-icon shape="ellipsis-horizontal"></cds-icon>
Expand All @@ -13,5 +13,5 @@
<span *ngIf="isLastItem" aria-current="page">{{ breadcrumb?.label }}</span>
</clr-breadcrumb-item>
</ng-container>
</ng-template>
</ng-container>
</div>

0 comments on commit e79c4cb

Please sign in to comment.