Skip to content

Commit

Permalink
No Pointer style cursor for table head when no hint or sorting (#910)
Browse files Browse the repository at this point in the history
* No Pointer style cursor when no hint or sorting

With no sorting or a hint, the cursor still shows a pointer. I'm not saying this is the best solution, but I think the header shouldn't shouldn't show a pointer style of cursor when there is nothing to click on or additional behavior from hovering.

* Update TableHeadCell.js
  • Loading branch information
lalong13 authored and gabrielliwerant committed Nov 21, 2019
1 parent 3f9bf27 commit 868bc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TableHeadCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class TableHeadCell extends React.Component {
</span>
</Tooltip>
) : (
<div className={classes.sortAction}>
<div className={hint ? classes.sortAction : null}>
{children}
{hint && (
<Tooltip
Expand Down

0 comments on commit 868bc4e

Please sign in to comment.