angular / angular/components

[FormField] Add option to allow hint to be shown only when focused

Aperta
#8,958 3 commenti 2 reazioni 0 assegnatari Vedi su GitHub
area: material/form-field feature material spec P3
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### Bug, feature request, or proposal:
Feature request

#### What is the expected behavior?
When the option is specified, the hint/helper text is hidden unless the field has focus.

#### What is the current behavior?
The hint is always displayed unless no hint is used

#### What is the use-case or motivation for changing an existing behavior?
Material Design specifications call for the hint to be either always displayed or displayed on focus only: https://material.io/guidelines/components/text-fields.html#text-fields-layout (see 'Helper text').

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material v5

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dall’implementazione di Angular Material FormField e segui come viene attualmente eseguito il rendering del testo guida/di aiuto. Conferma gli stati atteso con focus e senza focus dell’opzione, quindi verifica che il suggerimento sia nascosto senza focus e rimanga visibile quando ha il focus.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.