Sticky header groups overlap each other #42165
Labels
component: table
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Just scroll down in the sample and the second header will overlap the firs.
Sample here
Current behavior
Both headers stick to the upper container edge and overlap each other
Expected behavior
The group as a whole should stick to the top and not each individual header so they wont overlap.
I did some testing and noticed that each TableRow in the header sticks to top: 0 and the TableHead scrolls away. My expectation would be that the hole Group sticks to the top instead of each individual row. I also did some testing in the devtools and it looked like adding top: 0 to the TableHead would solve the problem.
Looking forward to hear back from you guys! :)
Context
I'm currently working on a larger table with sticky header groups. Where the Bottom one will overlap the top one so the information displayed is not visible.
Your environment
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 20.11.1 - ~\scoop\apps\nodejs-lts\current\node.EXE
npm: 10.2.4 - ~\scoop\apps\nodejs-lts\current\npm.CMD
pnpm: 8.15.4 - ~\scoop\apps\nodejs-lts\current\bin\pnpm.CMD
Browsers:
Chrome: 124.0.6367.119
Edge: Chromium (123.0.2420.97)
Search keywords: Sticky header groups overlapping
The text was updated successfully, but these errors were encountered: