ionic-team / ionic-team/ionic-framework

feat: customize theme of ion-alert and ion-action-sheet via color prop

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

描述

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/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 report this problem, without success.

### Ionic Framework Version

v7.x

### Current Behavior

When using `ion-select` with `color='secondary'`, the `ion-checkbox` and `ion-item` components inside the `ion-select` still use the default `color='primary'`.

image

### Expected Behavior

`ion-checkbox` and `ion-item` components inside `ion-select` should inherit the color property defined in the parent ion-select component.

image

### Steps to Reproduce

1. Change prop `color` of `ion-select` to `secondary`
2. Use with `multiple`
3. Open the options

### Code Reproduction URL

https://felipefialho.github.io/select-with-multiple/

### Ionic Info

```sh
Ionic:

Ionic CLI : 7.1.1

Utility:

cordova-res : not installed globally
native-run : not installed globally

System:

NodeJS : v18.13.0
npm : 8.19.3
OS : macOS Unknown
```

### Additional Information

_No response_

贡献指南

打开贡献指南

调研方向

从链接的复现 URL 开始,复现一个使用 color="secondary" 且启用 multiple 的 ion-select。检查 ion-select 选项及其 ion-checkbox 和 ion-item 组件;完成的标准是这些组件继承父级颜色,同时不改变复现设置。

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

评估

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

把新 issue 发到你的邮箱

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