ionic-team / ionic-team/ionic-framework
feat: ion-toggle: Custom on/off icons
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 51
描述
### Prerequisites
- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already include this feature request, without success.
### Describe the Feature Request
Currently it is impossible to provide our own icons on the toggles, and this leads to problems with styled toggles as they can seem uncanny (eg. a M3 Expressive toggle using M2 icons).
I would love for the toggle to have a way for me to provide its icons.
### Describe the Use Case
Toggle customization, but also some may use other kinds of icons also.
### Describe Preferred Solution
_No response_
### Describe Alternatives
_No response_
### Related Code
_No response_
### Additional Information
_No response_
贡献指南
调研方向
Start by locating the ion-toggle component and its existing rendering and test entry points; the issue names no files or tests. Determine how custom on/off icons should be exposed and verify that both toggle states retain their expected behavior without breaking the default icons.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- design, frontend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100