Skip to content

Commit 1408182

Browse files
authored
Merge pull request #15749 from github/repo-sync
repo sync
2 parents 545c8a5 + b4d0a4b commit 1408182

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

components/DefaultLayout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ export const DefaultLayout = (props: Props) => {
8585
Skip to main content
8686
</a>
8787
<SidebarNav />
88-
<div className="flex-column flex-1 overflow-auto">
88+
{/* Need to set an explicit height for sticky elements since we also
89+
set overflow to auto */}
90+
<div
91+
className="flex-column flex-1 overflow-auto print-overflow-visible"
92+
style={{ height: '100vh' }}
93+
>
8994
<Header />
9095
<main id="main-content">
9196
<DeprecationBanner />

stylesheets/utilities.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
.no-print {
2525
display: none;
2626
}
27+
28+
.print-overflow-visible {
29+
overflow: visible !important;
30+
}
2731
}
2832

2933
/* Opacity utilities

0 commit comments

Comments
 (0)