Skip to content

Commit 8a9e15e

Browse files
fix(header): scope condense-inactive box-shadow removal to md only
1 parent 51f4925 commit 8a9e15e

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

core/src/components/header/header.common.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,6 @@ ion-header ion-toolbar:first-of-type {
6767
padding-bottom: 13px;
6868
}
6969

70-
/**
71-
* When the condense header is active (large title visible),
72-
* the main header's toolbar background fades in/out via --opacity-scale.
73-
* Also remove box-shadow so the main header blends with the condense header.
74-
*/
75-
.header-collapse-condense-inactive:not(.header-collapse-condense) {
76-
box-shadow: none;
77-
}
78-
7970
.header-collapse-main {
8071
--opacity-scale: 1;
8172
}

core/src/components/header/header.md.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
box-shadow: none;
1717
}
1818

19+
/**
20+
* When the condense header is active (large title visible),
21+
* the main header's box-shadow should be hidden so it blends
22+
* with the condense header below it.
23+
*/
24+
.header-md.header-collapse-condense-inactive:not(.header-collapse-condense) {
25+
box-shadow: none;
26+
}
27+
1928
/**
2029
* The deprecated collapse="condense" attribute is iOS-only.
2130
* On md, the condense header should be hidden since the JS

0 commit comments

Comments
 (0)