angular / angular/components

tabs: nested mat-tab-group with custom label template puts label on parent tab too

Aperta
#10,441 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area: material/tabs help wanted P4
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### Bug, feature request, or proposal:
Bug

#### What is the expected behavior?
Should be able to use a custom tab label template in a sub tab but not in a parent tab.

#### What is the current behavior?
Having a mat-tab-group within a mat-tab-group with the child mat-tab-group having mat-tab items with a custom tab template (using ng-template) puts the custom tab content on the parent tab too.

#### What are the steps to reproduce?
StackBlitz repro: https://stackblitz.com/edit/angular-7njwul

#### What is the use-case or motivation for changing an existing behavior?
Not possible to use a custom tab label template on child tabs without breaking the parent tabs.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Browsers - all
Material: 5.2.4 (+?)
Angular 5

#### Is there anything else we should know?
Nope

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia eseguendo la riproduzione StackBlitz collegata con il mat-tab-group annidato, gli elementi mat-tab figli, il modello di etichetta personalizzato e ng-template. Traccia il modo in cui l'etichetta personalizzata viene applicata alle schede padre e figlie, quindi verifica che il contenuto personalizzato appaia solo nelle schede figlie senza influire sulle schede padre.

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
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.