bug(mat-form-field): mat-form-field appearance outline with mat-icon as matPrefix inside a 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
13
### Description
If we have a `` containing a `` inside a `` that is not displayed initially, the label isn't positioned correctly.
### Reproduction
Steps to reproduce:
https://stackblitz.com/edit/angular-ivy-svduwe?file=src%2Fapp%2Fapp.component.html,angular.json,src%2Fstyles.scss,src%2Fapp%2Fapp.module.ts,src%2Findex.html
```
search
Outline form field
search
Outline form field
```
### Expected Behavior
The text should be aligned correctly after the icon
### Actual Behavior

### Environment
- Angular: 15.0.4
- CDK/Material: 15.0.3
- Browser(s): Chrome/Firefox
- Operating System (e.g. Windows, macOS, Ubuntu): Windows. MacOS
Beitragsleitfaden
Rechercherichtung
Beginne mit der verknüpften StackBlitz-Reproduktion, insbesondere mit src/app/app.component.html und den referenzierten Dateien angular.json, src/styles.scss, src/app/app.module.ts und src/index.html. Reproduziere das Outline-mat-form-field mit einem mat-icon matPrefix im anfänglich ausgeblendeten mat-tab und verfolge anschließend das Verhalten von Angular Material bei Form-Field und Tab; abgeschlossen ist die Aufgabe, wenn Label und Text nach dem Wechseln der Tabs korrekt ausgerichtet sind.
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
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100