bug: iOS style fade header color missmatch

Đang mở
#30,939 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #31252 của @Austin-Spriggs — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
frontend, mobile

Hướng nghiên cứu

Bắt đầu với bản tái hiện StackBlitz được liên kết và so sánh hành vi của header fade trong modal giữa Ionic 8.7.0 và 8.7.1. Theo dõi hành vi theo kiểu iOS của ion-header collapse="fade" với ion-content color="light" trong modal, sau đó xác minh rằng header fade khớp với màu nội dung đối với cả modal thông thường và modal dạng sheet.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

type: bug
Prerequisites
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:
Image

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:
Image

Steps to Reproduce

Basic modal setup which produces the error with ionic Version >=8.7.1:

<ion-modal >
    <ion-header collapse="fade">
      <ion-toolbar>
        <ion-title>Settings</ion-title>
      </ion-toolbar>
    </ion-header>
    <ion-content color="light" fullscreen>
    </ion-content >
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

Ngôn ngữ chính
TypeScript
Star
52.8k
Fork
13.3k
Merge trung bình
3 ngày 1 giờ
Pull request đã merge (30 ngày)
86

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ionic-team/ionic-framework

Tất cả issue của ionic-team/ionic-framework

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.