Skip to content

Commit

Permalink
Style sticky header the same as regular table header
Browse files Browse the repository at this point in the history
  • Loading branch information
jesstelford committed Feb 26, 2024
1 parent 84adf34 commit 04777fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ $loading-panel-height: 53px;
border-collapse: collapse;
}

.Table-scrolling {
.Table-scrolling,
.StickyTable-scrolling {
// stylelint-disable-next-line selector-max-class, selector-max-combinators -- generated by polaris-migrator DO NOT COPY
.TableCell-first,
.TableCell-first + .TableCell,
Expand All @@ -119,7 +120,8 @@ $loading-panel-height: 53px;
filter: drop-shadow(1px 0 0 var(--p-color-border-secondary));
}

&.Table-sticky {
&.Table-sticky,
&.StickyTable {
// stylelint-disable-next-line selector-max-class, selector-max-combinators, selector-max-specificity -- generated by polaris-migrator DO NOT COPY
.TableCell-first + .TableCell,
.TableHeading-second {
Expand Down Expand Up @@ -1243,7 +1245,8 @@ $loading-panel-height: 53px;
}
}

.Table-sticky-scrolling {
.Table-sticky-scrolling,
.StickyTableHeader-sticky-scrolling {
.TableCell:last-child,
.TableHeading-last {
@media (--p-breakpoints-sm-up) {
Expand Down
3 changes: 0 additions & 3 deletions polaris-react/src/components/IndexTable/IndexTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -649,14 +649,11 @@ function IndexTableBase({
canFitStickyColumn &&
lastColumnSticky &&
styles['StickyTableHeader-sticky-last'],
/*
// ie; is scrolled to the left
canFitStickyColumn &&
lastColumnSticky &&
canScrollRight &&
styles['StickyTableHeader-sticky-scrolling'],
*/
);

const bulkActionsClassName = classNames(
Expand Down

0 comments on commit 04777fa

Please sign in to comment.