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:
Johan Persson
2025-11-21 16:01:42 +01:00
parent 6dd15832a0
commit c145031c74
2 changed files with 10 additions and 3 deletions
+7
View File
@@ -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>
)}