Skip to content

Commit eb343a2

Browse files
committed
fix: Hide table header column data when in skeleton state
Signed-off-by: Akshat Patel <akshat@live.ca>
1 parent c0ff28e commit eb343a2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/table/head/table-head-cell.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ import { TableHeaderItem } from "../table-header-item.class";
6868
<div
6969
class="cds--table-header-label"
7070
*ngIf="!skeleton && this.sort.observers.length === 0 || (this.sort.observers.length > 0 && !column.sortable) || !sortable">
71-
<span *ngIf="!column.template" [title]="column.data">{{column.data}}</span>
71+
<span *ngIf="!column.template" [title]="column.data">
72+
<ng-container *ngIf="!skeleton">
73+
{{column.data}}
74+
</ng-container>
75+
</span>
7276
<ng-template
7377
[ngTemplateOutlet]="column.template" [ngTemplateOutletContext]="{data: column.data}">
7478
</ng-template>

0 commit comments

Comments
 (0)