diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-child-disabled-ionic-md-ltr-light-Mobile-Chrome-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-child-disabled-ionic-md-ltr-light-Mobile-Chrome-linux.png index 8046c26c5a8..74bf5c160eb 100644 Binary files a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-child-disabled-ionic-md-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-child-disabled-ionic-md-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-enabled-ionic-md-ltr-light-Mobile-Chrome-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-enabled-ionic-md-ltr-light-Mobile-Chrome-linux.png index 97940aee3f2..a481073745f 100644 Binary files a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-enabled-ionic-md-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-enabled-ionic-md-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/header/header.ionic.scss b/core/src/components/header/header.ionic.scss index 61ef8e11f9e..e866120e17e 100644 --- a/core/src/components/header/header.ionic.scss +++ b/core/src/components/header/header.ionic.scss @@ -23,9 +23,59 @@ ion-toolbar + ion-toolbar { position: absolute; - backdrop-filter: saturate(180%) blur(globals.$ion-scale-100); + pointer-events: none; } + + .header-translucent-ionic .header-background-blur, + .header-translucent-ionic .header-background-blur-layer { + @include globals.position(0, 0, 0, 0); + + position: absolute; + } + + .header-translucent-ionic .header-background-blur-layer:nth-child(1) { + backdrop-filter: blur(globals.$ion-scale-025); + + mask-image: linear-gradient(to bottom, #000 82.64%, transparent 91%); + } + + .header-translucent-ionic .header-background-blur-layer:nth-child(2) { + backdrop-filter: blur(globals.$ion-scale-050); + + mask-image: linear-gradient(to bottom, #000 74.29%, transparent 82.64%); + } + + .header-translucent-ionic .header-background-blur-layer:nth-child(3) { + backdrop-filter: blur(globals.$ion-scale-100); + + mask-image: linear-gradient(to bottom, #000 65.93%, transparent 74.29%); + } + + .header-translucent-ionic .header-background-blur-layer:nth-child(4) { + backdrop-filter: blur(globals.$ion-scale-200); + + mask-image: linear-gradient(to bottom, #000 57.57%, transparent 65.93%); + } + + .header-translucent-ionic .header-background-blur-layer:nth-child(5) { + backdrop-filter: blur(globals.$ion-scale-400); + + mask-image: linear-gradient(to bottom, #000 49.21%, transparent 57.57%); + } + + .header-translucent-ionic .header-background-blur-layer:nth-child(6) { + backdrop-filter: blur(globals.$ion-scale-800); + + mask-image: linear-gradient(to bottom, #000 40.86%, transparent 49.21%); + } + + .header-translucent-ionic .header-background-blur-layer:nth-child(7) { + backdrop-filter: blur(globals.$ion-scale-1600); + + mask-image: linear-gradient(to bottom, #000 32.5%, transparent 40.86%); + } + .header-translucent-ionic ion-toolbar { - --opacity: 0.7; + --background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)); } } diff --git a/core/src/components/header/header.tsx b/core/src/components/header/header.tsx index 785c8b91535..9fb48f3bcc2 100644 --- a/core/src/components/header/header.tsx +++ b/core/src/components/header/header.tsx @@ -358,7 +358,21 @@ export class Header implements ComponentInterface { }} {...inheritedAttributes} > - {theme !== 'md' && translucent &&
} + {theme !== 'md' && translucent && ( +
+ {theme === 'ionic' && ( + + )} +
+ )} ); diff --git a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png index 336602306e7..fb231862e01 100644 Binary files a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png index 12cf6307d85..a74c5fe7815 100644 Binary files a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Safari-linux.png b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Safari-linux.png index 6eaea207f05..6e80b07eb3c 100644 Binary files a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Safari-linux.png and b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-blurred-diff-ionic-md-ltr-light-Mobile-Safari-linux.png differ diff --git a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png index c371a367571..6a16616c44f 100644 Binary files a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png and b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Chrome-linux.png differ diff --git a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png index 07c27b1917a..d3f49496852 100644 Binary files a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png and b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Firefox-linux.png differ diff --git a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Safari-linux.png b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Safari-linux.png index 2e16307c9e4..ee1ddecb15f 100644 Binary files a/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Safari-linux.png and b/core/src/components/header/test/fade/header.e2e.ts-snapshots/header-fade-not-blurred-diff-ionic-md-ltr-light-Mobile-Safari-linux.png differ