Label for mat-form-field is overlapping with mat-icon in mat-tab.
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
### 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
Label is overlapping with icon.
- When using in 2nd Tab of Tabgroup, surrounded with a e.g. a div, p, ...
- and
- When using the the mat-form-field with appearance "outline" and an icon with matPrefix.
```
Outline form field
sentiment_very_satisfied
Hint
```
### Reproduction
Steps to reproduce:
1. add to app.module
import { MatInputModule } from '@angular/material/input';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatTabsModule } from '@angular/material/tabs';
2. add to app.component
```
Outline form field
sentiment_very_satisfied
Hint
Outline form field
sentiment_very_satisfied
Hint
#
```
3.
for the input field in 2nd tab : label is overlapping with mat-icon
4.
when inspecting the style, it seems the X transform is not correct

### Expected Behavior
Label should have correct margin
### Actual Behavior
Label is overlapping with mat-icon
### Environment
- Angular:15.0.0
- CDK/Material:15.1.0
- Browser(s):Chrome, Edge
- Operating System (e.g. Windows, macOS, Ubuntu):Windows 10
コントリビューションガイド
調査の方向性
まず、outlined mat-form-field、matPrefix アイコン、2 番目の mat-tab を使用した、提供されている Angular Material の例を再現し、その後、報告書に記載されている label の transform スタイルを確認します。2 番目のタブで label が正しいマージンを持ち、mat-icon と重ならなくなり、1 番目のタブの動作が維持されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100