Skip to content

Commit

Permalink
fix(angular): fixing dynamic menu open in new tab (#2380)
Browse files Browse the repository at this point in the history
* fix(angular): fixing dynamic menu open in new tab
* style(angular): adjust spacing in dynamic menu link component
  • Loading branch information
owilliams320 authored Feb 4, 2025
1 parent eb44c9d commit a22cd00
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
<div class="group-label tc-td-secondary text-sm">{{ item.text }}</div>
</ng-container>
<ng-container *ngIf="item.link || item.action">
<div mat-menu-item class="pad-none">
<td-dynamic-menu-link
[item]="item"
(itemClicked)="emitClicked($event)"
></td-dynamic-menu-link>
</div>
<td-dynamic-menu-link
[item]="item"
(itemClicked)="emitClicked($event)"
></td-dynamic-menu-link>
</ng-container>
</ng-container>
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
<mat-icon *ngIf="item.icon" [class]="item.iconClasses">{{
item.icon
}}</mat-icon>
<span>{{ item.text }}</span>
<mat-icon *ngIf="item.newTab" class="new-tab-icon">launch</mat-icon>
<span class="item-link-text">
{{ item.text }}
<mat-icon *ngIf="item.newTab" class="new-tab-icon">launch</mat-icon>
</span>
</a>
<button
*ngIf="item.action"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@
.new-tab-icon {
margin: 0 0 0 16px;
}

.item-link-text {
display: flex;
align-items: center;
}
}

0 comments on commit a22cd00

Please sign in to comment.