Skip to content

Commit 209c7ef

Browse files
committed
fix(grid): display sort icon correctly
1 parent 7b0c733 commit 209c7ef

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

projects/angular/components/ui-grid/src/ui-grid.component.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,15 @@
162162
[matTooltipDisabled]="resizeManager.isResizing"
163163
[attr.aria-label]="column.title + (column.description ? ('. ' + column.description) : '') + (column.sortable && intl.sortableMessage ? '. ' + intl.sortableMessage : '')">
164164
{{ column.title }}</p>
165-
<div *ngIf="column.sortable || column.description"
165+
166+
<mat-icon *ngIf="column.description"
167+
[matTooltip]="column.description"
168+
class="ui-grid-info-icon material-icons-outlined">info</mat-icon>
169+
170+
<div *ngIf="column.sortable"
166171
[class.ui-grid-sort-indicator-asc]="column.sort === 'asc'"
167172
[class.ui-grid-sort-indicator-desc]="column.sort === 'desc'"
168173
class="ui-grid-sort-indicator">
169-
<mat-icon *ngIf="column.description"
170-
[matTooltip]="column.description"
171-
class="ui-grid-info-icon material-icons-outlined">info</mat-icon>
172174
<mat-icon class="ui-grid-sort-icon">
173175
<svg xmlns="http://www.w3.org/2000/svg"
174176
viewBox="0 0 24 24">

0 commit comments

Comments
 (0)