Skip to content

Commit

Permalink
Merge pull request #2707 from Akshat55/table-header-skeleton
Browse files Browse the repository at this point in the history
fix: Hide table header column data when in skeleton state
  • Loading branch information
zvonimirfras authored Oct 6, 2023
2 parents c0ff28e + 19081de commit 6b50b7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/table/head/table-head-cell.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ import { TableHeaderItem } from "../table-header-item.class";
<div
class="cds--table-header-label"
*ngIf="!skeleton && this.sort.observers.length === 0 || (this.sort.observers.length > 0 && !column.sortable) || !sortable">
<span *ngIf="!column.template" [title]="column.data">{{column.data}}</span>
<span *ngIf="!column.template" [title]="column.data">
<ng-container *ngIf="!skeleton">
{{column.data}}
</ng-container>
</span>
<ng-template
[ngTemplateOutlet]="column.template" [ngTemplateOutletContext]="{data: column.data}">
</ng-template>
Expand Down
1 change: 0 additions & 1 deletion src/table/head/table-head.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ import { TableRowSize } from "../table.types";
[skeleton]="skeleton"
[id]="model.getId(i)"
[column]="column"
[skeleton]="skeleton"
[filterTitle]="getFilterTitle()"
[attr.colspan]="column.colSpan"
[attr.rowspan]="column.rowSpan"
Expand Down

0 comments on commit 6b50b7d

Please sign in to comment.