angular / angular/components

feat(COMPONENT): Add "disabledInteractive" input to "mat-chip-option"

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

描述

### Feature Description

I want to be able to set "disabledInteractive" on `mat-chip-option` similarly to how the `mat-button` component allows tooltips for disabled buttons when "disabledInteractive" is passed as an input.

See `disabledInteractive` in https://material.angular.io/components/button/api

### Use Case

I find myself dynamically disabling chips, and it'd be nice to be able to explain to users why a chip option is disabled with a tooltip instead of having to place the error somewhere else in the DOM or use some element-wrapping workaround.

贡献指南

打开贡献指南

调研方向

首先查看 issue 中链接的 mat-chip-option 组件和 mat-button disabledInteractive API。跟踪当前禁用的 chip 和 tooltip 的行为,然后验证请求的输入是否允许显示说明性 tooltip,同时保持 chip 处于禁用状态。

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

评估

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

把新 issue 发到你的邮箱

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