Skip to content

Commit

Permalink
fix(DatatableV2): show sorting icon when column is sorted
Browse files Browse the repository at this point in the history
Closes UXD-1657
  • Loading branch information
ajkl2533 committed Oct 21, 2024
1 parent 51f7651 commit 469fe44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/components/DatatableV2/table/TableRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,6 @@ const TableRoot = styled.div`
}
}
.ds-table-header-cell-sort-button {
opacity: 0;
font-size: var(--sscds-font-size-body-sm);
}
.ds-table-header-cell-column-actions-button-wrapper {
display: flex;
align-items: center;
Expand All @@ -148,14 +143,13 @@ const TableRoot = styled.div`
&:hover,
&:focus-within {
.ds-table-header-cell-sort-button,
.ds-table-header-cell-resize-handler,
.ds-table-header-cell-column-actions-button-wrapper {
opacity: 1;
}
}
&[data-sorted]:not([data-sorted='false'])
.ds-table-header-cell-sort-button {
.ds-table-header-cell-column-actions-button-wrapper {
opacity: 1;
}
}
Expand Down

0 comments on commit 469fe44

Please sign in to comment.