ionic-team / ionic-team/ionicons

Feature request: Add indicator slot

未关闭
#995 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
community feedback wanted
主要语言
TypeScript
星标
18.2k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

描述

Hi there.

It would be great if the ion-icon component would allow for an indicator slot so we could use ion-icon somehow like this:

```

```

This would allow us to assign markup to the inside of an ion-icon. I am currently trying to find a good solution to add icons with indicators (other icons on top of the existing one). And I can not really find a good solution without creating a custom component, which I do not want to because it breaks all my styling in items, buttons etc. that excpects an ion-icon component and not a "custom-component".

贡献指南

打开贡献指南

调研方向

首先定位 ion-icon 组件,并了解它如何处理子标记和样式。使用 issue 中的示例评估所请求的 indicator slot;完成的标准是:indicator icon 可以在 ion-icon 内部渲染,无需自定义组件,也不会破坏其在 items 和 buttons 中的使用。

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

评估

技术栈
typescript
领域
frontend, web-dev
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

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