ionic-team / ionic-team/ionic-framework
feat: customize icon positioning in ion-button
- Ngôn ngữ chính
- TypeScript
- Star
- 52.7k
- Fork
- 13.3k
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 51
Mô tả
# 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
`
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by reviewing the ion-button implementation and comparing its slot handling with ion-segment and ion-tab-button, which already support top-positioned icons. Confirm how a top slot should position the icon above the label, then add coverage for the requested markup and verify the button renders the icon on top with text below.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100