From 704cdab8dda997df30504cbc59659c33bc31667f Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 16 Apr 2020 21:42:10 +0300 Subject: [PATCH] Fixed #1329 - Update sortIcons --- src/components/datatable/HeaderCell.js | 4 ++-- src/components/treetable/TreeTableHeader.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/datatable/HeaderCell.js b/src/components/datatable/HeaderCell.js index 9a5e608887..1af21e9e62 100644 --- a/src/components/datatable/HeaderCell.js +++ b/src/components/datatable/HeaderCell.js @@ -104,7 +104,7 @@ export class HeaderCell extends Component { getAriaSort(sorted, sortOrder) { if (this.props.columnProps.sortable) { - let sortIcon = sorted ? sortOrder < 0 ? 'pi-sort-down' : 'pi-sort-up': 'pi-sort'; + let sortIcon = sorted ? sortOrder < 0 ? 'pi-sort-amount-down' : 'pi-sort-amount-up-alt': 'pi-sort-alt'; if (sortIcon === 'pi-sort-down') return 'descending'; else if (sortIcon === 'pi-sort-up') @@ -119,7 +119,7 @@ export class HeaderCell extends Component { renderSortIcon(sorted, sortOrder) { if (this.props.columnProps.sortable) { - let sortIcon = sorted ? sortOrder < 0 ? 'pi-sort-down' : 'pi-sort-up': 'pi-sort'; + let sortIcon = sorted ? sortOrder < 0 ? 'pi-sort-amount-down' : 'pi-sort-amount-up-alt': 'pi-sort-alt'; let sortIconClassName = classNames('p-sortable-column-icon pi pi-fw', sortIcon); return ( diff --git a/src/components/treetable/TreeTableHeader.js b/src/components/treetable/TreeTableHeader.js index eed7174d46..21de041557 100644 --- a/src/components/treetable/TreeTableHeader.js +++ b/src/components/treetable/TreeTableHeader.js @@ -144,7 +144,7 @@ export class TreeTableHeader extends Component { renderSortIcon(column, sorted, sortOrder) { if (column.props.sortable) { - const sortIcon = sorted ? sortOrder < 0 ? 'pi-sort-down' : 'pi-sort-up': 'pi-sort'; + const sortIcon = sorted ? sortOrder < 0 ? 'pi-sort-amount-down' : 'pi-sort-amount-up-alt': 'pi-sort-alt'; const sortIconClassName = classNames('p-sortable-column-icon', 'pi pi-fw', sortIcon); return (