Move table overflow layer to fix sticky header not working

This commit is contained in:
Andrew Kingston 2022-02-18 14:40:08 +00:00
parent 5e98b01d4e
commit 84a475764e
1 changed files with 1 additions and 2 deletions

View File

@ -315,7 +315,6 @@
.wrapper { .wrapper {
position: relative; position: relative;
z-index: 0; z-index: 0;
overflow: auto;
--table-bg: var(--spectrum-global-color-gray-50); --table-bg: var(--spectrum-global-color-gray-50);
--table-border: 1px solid var(--spectrum-alias-border-color-mid); --table-border: 1px solid var(--spectrum-alias-border-color-mid);
--cell-padding: 20px; --cell-padding: 20px;
@ -343,11 +342,11 @@
width: 100%; width: 100%;
border-radius: 0; border-radius: 0;
display: grid; display: grid;
overflow: auto;
} }
/* Header */ /* Header */
.spectrum-Table-headCell { .spectrum-Table-headCell {
vertical-align: middle;
height: var(--header-height); height: var(--header-height);
position: sticky; position: sticky;
top: 0; top: 0;