Skip to content

Commit

Permalink
Change sort icon according to current sort conditions (#5772)
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
  • Loading branch information
abbyhu2000 authored Feb 1, 2024
1 parent 8ec8176 commit bcd9c05
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ interface Props {
}

const sortDirectionToIcon: Record<string, string> = {
desc: 'fa fa-sort-down',
asc: 'fa fa-sort-up',
'': 'fa fa-sort',
desc: 'sortDown',
asc: 'sortUp',
'': 'sortable',
};

export function TableHeaderColumn({
Expand Down Expand Up @@ -143,7 +143,7 @@ export function TableHeaderColumn({
onClick: handleChangeSortOrder,
testSubject: `docTableHeaderFieldSort_${name}`,
tooltip: getSortButtonAriaLabel(),
iconType: 'sortable',
iconType: btnSortIcon,
},
// Remove Button
{
Expand Down

0 comments on commit bcd9c05

Please sign in to comment.