ionic-team / ionic-team/ionic-framework
bug: iOS style fade header color missmatch
- 主要语言
- 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 report this problem, without success.
### Ionic Framework Version
v8.x
### Current Behavior
When using iOS style and fade headers in a modal dialog the fade header no longer matches the content color when the ion-content has `color="light"`
This behaviour is present since Version 8.7.1:
For some modals I was able to fix this issue with setting the color on the ion-toolbar but for sheet-modals I didn't found a solution.
### Expected Behavior
Before version 8.7.1 the fade header color would match the `ion-content` color:
Screenshot taken with version 8.7.0:
### Steps to Reproduce
Basic modal setup which produces the error with ionic Version >=8.7.1:
```html
Settings
```
### Code Reproduction URL
https://stackblitz.com/edit/xyvcuvsv?file=src%2Fcomponents%2FExample.vue
### Ionic Info
```
Ionic:
Ionic CLI : 7.2.0 (/opt/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 8.7.1
Utility:
cordova-res : not installed globally
native-run : 2.0.3
System:
NodeJS : v22.14.0 (/Users/dbegnis/.nvm/versions/node/v22.14.0/bin/node)
npm : 10.9.2
OS : macOS Unknown
───────────────────────────────────────────────
Ionic CLI update available: 7.2.0 → 7.2.1
Run npm i -g @ionic/cli to update
───────────────────────────────────────────────
```
### Additional Information
_No response_
贡献指南
调研方向
Start with the linked StackBlitz reproduction and compare the modal fade header behavior between Ionic 8.7.0 and 8.7.1. Trace the iOS-style ion-header collapse="fade" behavior with ion-content color="light" in the modal, then verify that the fade header matches the content color for both regular and sheet modals.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- frontend, mobile
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 62/100