Skip to content

Commit

Permalink
fix: th z-index - #67
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeJasmin committed Jul 13, 2020
1 parent 49f6d15 commit f53c30d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/demo/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function Demo() {
Header: 'First Name',
accessor: 'firstName',
width: 150,
Footer: () => <div>Footer</div>,
},
{
Header: 'Last Name',
Expand All @@ -137,6 +138,7 @@ function Demo() {
id: 'Full Name',
width: 150,
Cell: row => <div>{row.original.firstName}<br />{row.original.lastName}</div>,
Footer: () => <div>Footer</div>,
},
{
Header: 'Age',
Expand Down
12 changes: 11 additions & 1 deletion src/lib/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@
z-index: 1;
}

.rthfc.-sp .rthfc-th-fixed {
/* set z-index = 11 because rt-resizer has z-index = 10 */
z-index: 11;
}

.rthfc.-sp .rthfc-th-fixed-left,
.rthfc.-sp .rthfc-td-fixed-left {
left: 0;
Expand All @@ -83,4 +88,9 @@
.rthfc.-se .rt-td.rthfc-td-fixed {
position: relative;
z-Index: 1;
}
}

.rthfc.-se .-header .rt-th.rthfc-th-fixed {
/* set z-index = 11 because rt-resizer has z-index = 10 */
z-Index: 11;
}

0 comments on commit f53c30d

Please sign in to comment.