Skip to content

Commit 0f2e87d

Browse files
committed
Add background color on hover of header cell
1 parent b256add commit 0f2e87d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Components/TableView.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ const TableView = (props) => {
119119
onClick={() => {
120120
handleSort(key);
121121
}}
122+
onMouseOver={(e) => {
123+
e.currentTarget.style.backgroundColor = "lightgray";
124+
}}
125+
onMouseOut={(e) => {
126+
e.currentTarget.style.backgroundColor = "white";
127+
}}
122128
>
123129
<span>{tableHeader[key]}</span>
124130
<span

0 commit comments

Comments
 (0)