angular / angular/components

Feature request - expansion panel option to only expand/collapse on ▽ or △

オープン
#8,190 コメント 21 件 リアクション 42 件 担当者 0 名 GitHub で見る
area: material/expansion feature needs: discussion P5
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

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

Feature request

#### What is the expected behavior?

Ability to optionally only open / close expansion panel when up/down arrow is selected rather than the entire panel title

#### What is the current behavior?

The entire title triggers the behaviour

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

e.g. Outlook.com user interface - selecting a 'folder' is an action (e.g. edit the folder) - toggling its slider-like display requires action on the up/down button. Seems to make sense from a user interaction point of view. This can't be reproduced with the material expansion panel. It's useful when selecting the title implies 'more information' on this panel.

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

Workaround (untested) - add click handler to mat-panel-title and do not propagate the event

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

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

調査の方向性

まず Angular Material の expansion panel コンポーネントと既存のインタラクションテストを見つけます。パネルのタイトルと矢印のクリックが現在どのように処理されているかを確認し、次にオプションの動作を定義して、タイトルの選択と矢印の切り替えがデフォルトの動作を変更せずに独立して機能することを検証します。

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

評価

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

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

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