patternfly / patternfly

This repo contains core (HTML/CSS) implementation for PatternFly. Issues related to CSS/HTML and layout should be filed here.
https://patternfly.org
MIT License
697 stars 97 forks source link

Bug - Table stick column borders disappear #5453

Closed dlabrecq closed 11 months ago

dlabrecq commented 1 year ago

Cost Management shows a skeleton while loading data, in addition to a composable table with sticky columns. After loading, the skeleton is replaced. Typically the table looks fine, except when the page is zoomed out. In this scenario, the table's sticky column borders disappear upon a page refresh.

Demo: https://user-images.githubusercontent.com/17481322/227370670-172ac296-c864-497c-afd6-933c6956a520.mov

Simple test to replace page content Screenshot 2023-03-23 at 5 38 56 PM

Composable table code https://github.com/project-koku/koku-ui/blob/main/src/routes/views/explorer/explorerTable.tsx#L336

dlabrecq commented 1 year ago

When I remove the Pagination component from the toolbar, the table sticky borders display as normal. However, If I place pagination anywhere before the table, the table sticky borders will break. The borders are ok if pagination is placed after the table.

Simplified the pagination component as much as possible below.

<Toolbar>
  <ToolbarContent>
    <ToolbarItem variant="pagination">
      <Pagination itemCount={4} page={1} perPage={10} />
    </ToolbarItem>
  </ToolbarContent>
</Toolbar>
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in 30 days if no further activity occurs.

mcoker commented 1 year ago

@dlabrecq can you confirm if this is still an issue? If so do you mind creating a codesandbox that reproduces the bug?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in 30 days if no further activity occurs.