angular / angular/components

feat(COMPONENT): add "disabledInteractive" input to "mat-menu-item"

未关闭
#29,984 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area: material/menu feature P4
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

### Feature Description

I want allow to set `disabledInteractive` to `button[mat-menu-item]` and `a[mat-menu-item]`.
Now `disabledInteractive` is available in `mat-button`, `mat-checkbox` , etc. It is used to make the appearance disabled but still allow tooltips etc. to be available.

### Use Case

I sometimes use menus when there is not enough space to display buttons. It is inconvenient that mat-menu-item can't do what mat-button can do.

贡献指南

打开贡献指南

调研方向

从 mat-menu-item 的实现开始,比较 mat-button 和相关组件如何处理 disabledInteractive。跟踪 button[mat-menu-item] 和 a[mat-menu-item] 入口点,然后检查或添加涵盖新 input 及其 tooltip 行为的 menu-item 测试。两种 menu-item 形式都支持所请求的 disabledInteractive 行为后,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。