ionic-team / ionic-team/ionic-framework

bug: No Translucent Header when using virtual scroll

未关闭
#30,096 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
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 a virtual scroll component such as rxAngular `RxVirtualScrollViewportComponent` the `ion-header` translucent option does not work.

The `ion-tab-bar' translucent effect also doesn't show unless the entire page is wrapped in a div with height set to 100%

### Expected Behavior

The `ion-header' and 'ion-tab-bar' translucent effect option should function as expected when using a virtual scroll component such as the _rxAngular_ virtual scroll

### Steps to Reproduce

1. Scroll through the virtual list on the first tab.
2. Notice the `ion-tab-bar' translucent effect showing correctly
3. Notice the `ion-header` NOT showing the translucent effect
4. navigate to the standard scroll tab and notice the header and tabs translucent effect showing as expected.

### Code Reproduction URL

https://stackblitz.com/~/github.com/CelloFloss/rx-virtual-scroll-issue-ionic?file=README.md

### Ionic Info

Ionic:

Ionic CLI : 7.2.0
Ionic Framework : @ionic/angular 8.4.1
@angular-devkit/build-angular : 19.0.6
@angular-devkit/schematics : 19.0.6
@angular/cli : 19.0.6
@ionic/angular-toolkit : 12.1.1

Utility:

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

System:

NodeJS : v20.10.0
npm : 10.2.3
OS : macOS

### Additional Information

_No response_

贡献指南

打开贡献指南

调研方向

Start with the linked StackBlitz reproduction and compare the virtual-scroll first tab with the standard-scroll tab. Trace how ion-header and ion-tab-bar translucent effects behave in each case; done means both effects work with the virtual scroll component without requiring the page to be wrapped in a 100% height div.

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

评估

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

把新 issue 发到你的邮箱

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