diff --git a/.changeset/big-moons-pretend.md b/.changeset/big-moons-pretend.md new file mode 100644 index 0000000000..dbc14a0520 --- /dev/null +++ b/.changeset/big-moons-pretend.md @@ -0,0 +1,5 @@ +--- +"@marigold/components": patch +--- + +[DST-504]: Sorting indicator is shown only on sorted column. diff --git a/packages/components/src/Table/TableColumnHeader.tsx b/packages/components/src/Table/TableColumnHeader.tsx index 50b7f02df1..ec58457989 100644 --- a/packages/components/src/Table/TableColumnHeader.tsx +++ b/packages/components/src/Table/TableColumnHeader.tsx @@ -8,8 +8,7 @@ import { mergeProps } from '@react-aria/utils'; import { GridNode } from '@react-types/grid'; import { SortDown, SortUp } from '@marigold/icons'; -import { cn, useStateProps } from '@marigold/system'; -import { width as twWidth } from '@marigold/system'; +import { cn, width as twWidth, useStateProps } from '@marigold/system'; import { useTableContext } from './Context'; import { ColumnProps } from './Table'; @@ -64,7 +63,9 @@ export const TableColumnHeader = ({ ) ) : ( - + + + ))} );