angular / angular/components

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

未关闭
#8,190 21 条评论 42 个 reaction 已指派 0 人 在 GitHub 查看
area: material/expansion feature needs: discussion P5
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
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 摘要。