ionic-team / ionic-team/ionic-framework

feat: customize icon positioning in ion-button

未关闭
#17,782 2 条评论 6 个 reaction 已指派 0 人 在 GitHub 查看
package: core type: feature request
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 14 小时
30 天内合并 PR
50

描述

# Feature Request

**Ionic version:**

[x] **4.x**

**Describe the Feature Request**

I want to place the icon on the top, and text on bottom in ion-button.
Same as the one available in ion-segment / ion-tab-button.

**Describe Preferred Solution**

Add "top" to slot attribute.
`

Top Icon
`

贡献指南

打开贡献指南

调研方向

首先检查 ion-button 的实现,并将其 slot 处理方式与 ion-segment 和 ion-tab-button 进行比较,后两者已经支持将图标放置在顶部。确认 top slot 应如何将图标放置在标签上方,然后为所请求的标记添加覆盖测试,并验证按钮会将图标渲染在上方、文本渲染在下方。

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

评估

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

把新 issue 发到你的邮箱

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