MatFormField hint and error alignment wrong when using a matPrefix icon
- 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?
Hint and error text are horizontally aligned with input text and both are indented if a matPrefix icon is present.
#### What is the current behavior?
The hint and error text are never indented when matPrefix is used.
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-h1lpum?embed=1&file=app/form-field-appearance-example.html
#### What is the use-case or motivation for changing an existing behavior?
Material Design guidelines are not being followed.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.5, Angular Material 6.2.1
#### Is there anything else we should know?
The alignment spec is not explicitly mentioned, but the anatomy diagram is clear: https://material.io/design/components/text-fields.html#anatomy.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dalla riproduzione StackBlitz collegata e analizza il comportamento di mat-form-field quando è presente un’icona matPrefix. Il lavoro è completato quando il testo dell’hint e dell’errore è allineato orizzontalmente al testo di input e rientrato in modo coerente con il prefisso, preservando il comportamento esistente del campo del modulo.
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
- 38/100