angular / angular/components

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

オープン
#10,954 コメント 10 件 リアクション 18 件 担当者 0 名 GitHub で見る
area: material/checkbox area: material/radio G P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### 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?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされた StackBlitz の再現を、具体的には app/app.component.html から始め、狭い viewport で長い mat-radio-button と mat-checkbox のコンテンツが折り返されないことを確認します。コンテンツがデフォルトで、またはドキュメント化されたオプションによって折り返され、コンポーネントの既存の動作が維持されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。