angular / angular/components

mat-radio-button and mat-checkbox don't line wrap

Aperta
#10,954 10 commenti 18 reazioni 0 assegnatari Vedi su GitHub
area: material/checkbox area: material/radio G P4
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

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

Proposal: change `` or `` to line-wrap its contents by default or add an option.

#### What is the expected behavior?

I can put a text into a `` or `` that is longer than what fits into the viewport.

#### What is the current behavior?

The content in a or does not line wrap. If you have a lot of text in a it gets cut at the end.

A workaround would be
`{{mylongtext}}`

#### What are the steps to reproduce?

https://stackblitz.com/edit/angular-material2-issue-uaeetd?file=app/app.component.html

#### What is the use-case or motivation for changing an existing behavior?

I have a pretty narrow window and need to put checkboxes and radio buttons in there.

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

I think all of them.

#### Is there anything else we should know?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con la riproduzione StackBlitz collegata, nello specifico app/app.component.html, e verifica la mancanza di ritorno a capo per i contenuti lunghi di mat-radio-button e mat-checkbox in un viewport stretto. Il lavoro è completato quando il contenuto va a capo per impostazione predefinita o tramite un'opzione documentata, preservando il comportamento esistente dei componenti.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.