[DataGrid] Add scroll shadows and fix scrollbar overlap
- Adds conditional scroll shadows when there are pinned columns and rows
- Fixes https://github.com/mui/mui-x/issues/13286
- Update vertical scrollbar positioning to cover pinned rows (previous discussion #16379)
Closes #10001
| Browser | Before | After |
|---|---|---|
| Chrome, macOS | ||
| Edge, Windows 11 | ||
| Chrome, Windows 11 |
Deploy preview: https://deploy-preview-16476--material-ui-x.netlify.app/
Updated pages:
Bundle size report
| Bundle | Parsed size | Gzip size |
|---|---|---|
| @mui/x-data-grid | 🔺+2.3KB(+0.59%) | 🔺+577B(+0.49%) |
| @mui/x-data-grid-pro | 🔺+2.64KB(+0.56%) | 🔺+595B(+0.42%) |
| @mui/x-data-grid-premium | 🔺+2.49KB(+0.40%) | 🔺+603B(+0.32%) |
| @mui/x-charts | 0B(0.00%) | 0B(0.00%) |
| @mui/x-charts-pro | 0B(0.00%) | 0B(0.00%) |
| @mui/x-charts-premium | 0B(0.00%) | 0B(0.00%) |
| @mui/x-date-pickers | 0B(0.00%) | 0B(0.00%) |
| @mui/x-date-pickers-pro | 0B(0.00%) | 0B(0.00%) |
| @mui/x-tree-view | 0B(0.00%) | 0B(0.00%) |
| @mui/x-tree-view-pro | 0B(0.00%) | 0B(0.00%) |
Generated by :no_entry_sign: dangerJS against 612f4209db6531238067eeeacd9926c406c41a72
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
Tbh I love the design as it is. I feel like it makes the grid with pinned rows a bit more readable as to which is the pinned vs unpinned section. I wonder if we could use the current styling for a grid with pinned rows, and the new styling for the case when there's no pinned rows?
I feel like it makes the grid with pinned rows a bit more readable as to which is the pinned vs unpinned section
@romgrk it does, but I think scroll shadows are a better indicator — I plan to add this back in at the same time https://github.com/mui/mui-x/issues/10001
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has been inactive for 30 days. Please remove the stale label or leave a comment to keep it open. Otherwise, it will be closed in 15 days.
OK, this PR is ready for review again. @romgrk any objections on your side?