fix(ui): correct Column sorting indicator direction
Fixed the Table Column sorting indicator to show an up arrow when no sorting is active, correctly indicating that clicking will sort ascending. Previously, the down arrow was shown by default, which was misleading. Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'@backstage/ui': patch
|
||||
---
|
||||
|
||||
Fixed Table column sorting indicator to show up arrow when no sort is active, correctly indicating that clicking will sort ascending.
|
||||
|
||||
Affected components: Column
|
||||
@@ -48,10 +48,10 @@ export const Column = (props: ColumnProps) => {
|
||||
styles[classNames.headSortButton],
|
||||
)}
|
||||
>
|
||||
{sortDirection === 'ascending' ? (
|
||||
<RiArrowUpLine size={16} />
|
||||
) : (
|
||||
{sortDirection === 'descending' ? (
|
||||
<RiArrowDownLine size={16} />
|
||||
) : (
|
||||
<RiArrowUpLine size={16} />
|
||||
)}
|
||||
</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user