angular / angular/components

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

Đang mở
#8,190 21 bình luận 42 reaction 0 người được giao Xem trên GitHub
area: material/expansion feature needs: discussion P5
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách xác định component expansion panel của Angular Material và các interaction test hiện có của nó. Xem lại cách các lần nhấp vào tiêu đề panel và mũi tên hiện đang được xử lý, sau đó xác định behavior tùy chọn và xác minh rằng việc chọn tiêu đề và việc toggle mũi tên hoạt động độc lập với nhau mà không thay đổi behavior mặc định.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.