Fixed #278 - Update sort icons
parent
5bdc34af46
commit
62cf07ecce
|
@ -125,9 +125,9 @@ export default {
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'p-sortable-column-icon pi pi-fw', {
|
'p-sortable-column-icon pi pi-fw', {
|
||||||
'pi-sort': !sorted,
|
'pi-sort-alt': !sorted,
|
||||||
'pi-sort-up': sorted && sortOrder > 0,
|
'pi-sort-amount-up-alt': sorted && sortOrder > 0,
|
||||||
'pi-sort-down': sorted && sortOrder < 0
|
'pi-sort-amount-down': sorted && sortOrder < 0
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
@ -176,9 +176,9 @@ export default {
|
||||||
getAriaSort(column) {
|
getAriaSort(column) {
|
||||||
if (column.sortable) {
|
if (column.sortable) {
|
||||||
const sortIcon = this.getSortableColumnIcon(column);
|
const sortIcon = this.getSortableColumnIcon(column);
|
||||||
if (sortIcon[1]['pi-sort-down'])
|
if (sortIcon[1]['pi-sort-amount-down'])
|
||||||
return 'descending';
|
return 'descending';
|
||||||
else if (sortIcon[1]['pi-sort-up'])
|
else if (sortIcon[1]['pi-sort-amount-up-alt'])
|
||||||
return 'ascending';
|
return 'ascending';
|
||||||
else
|
else
|
||||||
return 'none';
|
return 'none';
|
||||||
|
|
|
@ -393,9 +393,9 @@ export default {
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'p-sortable-column-icon pi pi-fw', {
|
'p-sortable-column-icon pi pi-fw', {
|
||||||
'pi-sort': !sorted,
|
'pi-sort-alt': !sorted,
|
||||||
'pi-sort-up': sorted && sortOrder > 0,
|
'pi-sort-amount-up-alt': sorted && sortOrder > 0,
|
||||||
'pi-sort-down': sorted && sortOrder < 0
|
'pi-sort-amount-down': sorted && sortOrder < 0
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
@ -732,9 +732,9 @@ export default {
|
||||||
getAriaSort(column) {
|
getAriaSort(column) {
|
||||||
if (column.sortable) {
|
if (column.sortable) {
|
||||||
const sortIcon = this.getSortableColumnIcon(column);
|
const sortIcon = this.getSortableColumnIcon(column);
|
||||||
if (sortIcon[1]['pi-sort-down'])
|
if (sortIcon[1]['pi-sort-amount-down'])
|
||||||
return 'descending';
|
return 'descending';
|
||||||
else if (sortIcon[1]['pi-sort-up'])
|
else if (sortIcon[1]['pi-sort-amount-up-alt'])
|
||||||
return 'ascending';
|
return 'ascending';
|
||||||
else
|
else
|
||||||
return 'none';
|
return 'none';
|
||||||
|
|
Loading…
Reference in New Issue