Navigation Menu

Skip to content

Commit

Permalink
fix(header): backdrop filter no longer distorts content with collapsi…
Browse files Browse the repository at this point in the history
…ble header (#20388)

fixes #20385
  • Loading branch information
liamdebeasi committed Feb 6, 2020
1 parent cfcdd97 commit 11d3945
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions core/src/components/header/header.ios.scss
Expand Up @@ -19,6 +19,14 @@
.header-translucent-ios ion-toolbar {
--opacity: .8;
}

/**
* Disable the saturation otherwise it distorts the content
* background color when large header is not collapsed
*/
.header-collapse-condense-inactive .header-background {
backdrop-filter: blur($header-ios-blur);
}
}

.header-ios.ion-no-border ion-toolbar:last-of-type {
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/header/header.ios.vars.scss
Expand Up @@ -3,5 +3,8 @@
// iOS Header
// --------------------------------------------------

/// @prop - Blur value for backdrop-filter
$header-ios-blur: 20px;

/// @prop - Filter of the translucent header
$header-ios-translucent-filter: saturate(180%) blur(20px) !default;
$header-ios-translucent-filter: saturate(180%) blur($header-ios-blur) !default;

0 comments on commit 11d3945

Please sign in to comment.