mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(header): backdrop filter no longer distorts content with collapsible header (#20388)
fixes #20385
This commit is contained in:
@ -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 {
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user