Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshakmaz committed Mar 31, 2021
1 parent 48324a4 commit 30af476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/gestalt/src/Table.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ td div{
}

.columnSticky div {
z-index: 4;
z-index: 5;
}

.columnStickyShadow div {
Expand Down
5 changes: 3 additions & 2 deletions packages/gestalt/src/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ export default function Table(props: Props): Node {
}, []);

useEffect(() => {
document.addEventListener('scroll', updateShadows);
const target = contentRef.current;
target.addEventListener('scroll', updateShadows);
return () => {
document.removeEventListener('scroll', updateShadows);
target.removeEventListener('scroll', updateShadows);
};
}, [updateShadows]);

Expand Down

0 comments on commit 30af476

Please sign in to comment.