tabs: nested mat-tab-group with custom label template puts label on parent tab too
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### 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
コントリビューションガイド
調査の方向性
まず、ネストされた mat-tab-group、子の mat-tab 要素、カスタムラベルテンプレート、ng-template を含む、リンク先の StackBlitz の再現コードを実行します。カスタムラベルが親タブと子タブにどのように適用されるかを追跡し、カスタムコンテンツが子タブにのみ表示され、親タブには影響しないことを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100