Skip to content

Commit

Permalink
Correct layout for sortable headers. (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Carmine authored Sep 11, 2020
1 parent df501e8 commit 580754c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
11 changes: 2 additions & 9 deletions src/components/Table/TableHeaderCell/TableHeaderCell.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,9 @@
text-align: center;
}

.heading,
.sort-icon {
display: inline-block;
}

.heading {
display: inline;
margin-right: var(--table-header-sort-icon-spacing);
white-space: initial;
}

.sort-icon {
margin-left: var(--table-header-sort-icon-spacing);
}
}
4 changes: 1 addition & 3 deletions src/components/Table/TableHeaderCell/TableHeaderCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ const TableHeaderCell: FC<TableHeaderCellProps> = ({
};

return (
<span className={styles['sort-icon']}>
{renderArrows()}
</span>
renderArrows()
);
};

Expand Down

0 comments on commit 580754c

Please sign in to comment.