Skip to content

Commit b211776

Browse files
graceparkheiskr
andauthored
Updating to scroll past header notifications and keep header sticky (#22539)
* updating to scroll past notification and keep header sticky * Update components/page-header/Header.tsx Co-authored-by: Kevin Heis <[email protected]> Co-authored-by: Kevin Heis <[email protected]>
1 parent 17c2df4 commit b211776

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
.breadcrumbs {
22
clip-path: inset(-5px -5px -5px 0px);
33
}
4+
5+
.header {
6+
display: unset;
7+
}

components/page-header/Header.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,18 @@ export const Header = () => {
4141

4242
return (
4343
<div
44-
className={`border-bottom color-border-muted no-print position-sticky top-0 z-3 ${
45-
scroll ? 'color-shadow-medium' : 'color-shadow-small'
46-
} color-bg-default`}
44+
className={cx(
45+
'border-bottom d-unset color-border-muted no-print z-3 color-bg-default',
46+
styles.header
47+
)}
4748
>
4849
{error !== '404' && <HeaderNotifications />}
49-
50-
<header className={cx('container-xl px-3 px-md-6 pt-3 pb-3 z-3')}>
50+
<header
51+
className={cx(
52+
'color-bg-default container-xl px-3 px-md-6 pt-3 pb-3 position-sticky top-0 z-3',
53+
scroll ? 'color-shadow-medium' : 'color-shadow-small'
54+
)}
55+
>
5156
{/* desktop header */}
5257
<div
5358
className="d-none d-lg-flex flex-justify-end flex-items-center"

0 commit comments

Comments
 (0)