Skip to content

Commit

Permalink
refactor(DataTable): rename sorting class name (#12320)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
emyarod and kodiakhq[bot] committed Oct 18, 2022
1 parent 47b06c3 commit 1e8e009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/DataTable/TableHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const TableHeader = React.forwardRef(function TableHeader(
[`${prefix}--table-sort`]: true,
[`${prefix}--table-sort--active`]:
isSortHeader && sortDirection !== sortStates.NONE,
[`${prefix}--table-sort--ascending`]:
[`${prefix}--table-sort--descending`]:
isSortHeader && sortDirection === sortStates.DESC,
});
const ariaSort = !isSortHeader ? 'none' : sortDirections[sortDirection];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
opacity: 1;
}

.#{$prefix}--table-sort--ascending .#{$prefix}--table-sort__icon {
.#{$prefix}--table-sort--descending .#{$prefix}--table-sort__icon {
transform: rotate(180deg);
}

Expand Down

0 comments on commit 1e8e009

Please sign in to comment.