bug(table/button): Z-index and scroll issues in a sticky table
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### Is this a regression?
- [X] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
14
### Description
I have two bugs with a sticky mat-table and not with table with mat-table directive :
- The button's z-index has changed since version 15.0.0. The sticky and button column are both 1, which makes the button visible (but not the table background), a Workaround st z-index to 2 on sticky column.
- When I have several columns in a table with a fixed column, the fixed column also moves.
### Reproduction
StackBlitz link: https://stackblitz.com/edit/tu9ax3
### Expected Behavior
That anything that scrolls under the sticky column is not visible and the sticky column is real sticky.
### Actual Behavior
The button is above the sticky column, and the sticky column is not really sticky.
### Environment
- Angular: 15 - 16
- CDK/Material: 15 - 16
- Browser(s): Chrome Lastest version
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 11
Guía de contribución
Línea de trabajo
Comienza con la reproducción vinculada en StackBlitz y compara su comportamiento en Angular/CDK/Material 14 y 15 para una mat-table sticky con una columna fija y una columna de botones. Confirma que el contenido desplazable queda oculto bajo la columna sticky, que la columna fija permanece fija y que el botón ya no aparece por encima de ella.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100