angular / angular/components

md error: long error messages overlap input fields

Aperta
#4,580 39 commenti 38 reazioni 0 assegnatari Vedi su GitHub
area: material/form-field area: material/input needs: discussion P4
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### Bug, feature request, or proposal:
Bug (or question about) displaying long error messages in md-error

#### What is the expected behavior?
The error message needs to be visible without overlapping with other input fields

#### What is the current behavior?
If there are multiple error messages or if a message is too long it is displayed on top of the next input field

#### What are the steps to reproduce?
The plunk displays an example of a long error message for Last name, which is required, overlapping Email input field and 'Save' button on blur event: http://plnkr.co/edit/LX2iSTxWPJOvNVl0pzy8

#### What is the use-case or motivation for changing an existing behavior?
Long error messages in input form need to be displayed correctly

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
+-- @angular/animations@4.1.2
+-- @angular/cli@1.0.3
+-- UNMET PEER DEPENDENCY @angular/common@4.1.2
+-- @angular/compiler@4.1.2
+-- @angular/compiler-cli@4.1.2
| +-- @angular/tsc-wrapped@4.1.2
+-- UNMET PEER DEPENDENCY @angular/core@4.1.2
+-- @angular/flex-layout@2.0.0-beta.8
+-- @angular/forms@4.1.2
+-- @angular/http@4.1.2
+-- @angular/material@2.0.0-beta.5
+-- @angular/platform-browser@4.1.2
+-- @angular/platform-browser-dynamic@4.1.2
+-- @angular/router@4.1.2
| +-- @angular/core@2.4.10

| +-- typescript@2.2.2
| `-- typescript@1.8.10
+-- typescript@2.3.2

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dal punto di ingresso del componente md-error e riproduci l'errore lungo di Last name nel Plunk collegato, inclusi più messaggi e l'evento blur. Traccia il comportamento del layout del componente attorno al campo Email e al pulsante Save; è completo quando i messaggi di errore lunghi rimangono visibili senza sovrapporsi ai campi di input adiacenti.

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
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.