Label for mat-form-field is overlapping with mat-icon in mat-tab.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### 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
Beitragsleitfaden
Rechercherichtung
Beginne damit, das bereitgestellte Angular Material-Beispiel mit einem outlined mat-form-field, einem matPrefix-Icon und dem zweiten mat-tab zu reproduzieren, und untersuche dann die im Bericht angegebenen Styles für die Label-Transformation. Erledigt ist die Aufgabe, wenn das Label den richtigen Abstand hat und sich im zweiten Tab nicht mehr mit dem mat-icon überschneidet, während das Verhalten des ersten Tabs erhalten bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 45/100