angular / angular/components

bug(table/button): Z-index and scroll issues in a sticky table

Aperta
#27,246 2 commenti 6 reazioni 0 assegnatari Vedi su GitHub
area: material/table P2 regression
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con la riproduzione collegata su StackBlitz e confronta il suo comportamento in Angular/CDK/Material 14 e 15 per una mat-table sticky con una colonna fissa e una colonna di pulsanti. Verifica che il contenuto scorrevole sia nascosto sotto la colonna sticky, che la colonna fissa rimanga fissa e che il pulsante non appaia più sopra di essa.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.