bug: iOS style fade header color missmatch

オープン
#30,939 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #31252 @Austin-Spriggs による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
frontend, mobile

調査の方向性

リンクされている StackBlitz の再現コードから始め、Ionic 8.7.0 と 8.7.1 でモーダルのフェードヘッダーの動作を比較します。モーダル内で ion-content color="light" と組み合わせた iOS スタイルの ion-header collapse="fade" の動作を追跡し、その後、通常のモーダルとシートモーダルの両方でフェードヘッダーがコンテンツの色と一致することを確認します。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
52.8k
フォーク
13.3k
平均マージ
3日 1時間
マージ済み PR(30日)
86

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/ionic-framework のほかの issue

ionic-team/ionic-framework の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。