Skip to content

Commit 4056530

Browse files
authored
Merge pull request #161 from patternfly/nav-overflow-fix
fix(nav): prevent overflow of nav items causing page body overflow
2 parents a7e8e82 + 0cd6f4e commit 4056530

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const Navigation: React.FunctionComponent<NavigationProps> = ({
2525

2626
return (
2727
// Can possibly add back PageSidebar wrapper when https://github.com/patternfly/patternfly/issues/7377 goes in
28-
<PageSidebarBody id="page-sidebar-body">
28+
<PageSidebarBody id="page-sidebar-body" style={{ overflowY: 'auto' }}>
2929
<Nav onSelect={onNavSelect}>
3030
<NavList>
3131
{navData.map((navEntries) => {

src/components/__tests__/__snapshots__/Navigation.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ exports[`matches snapshot 1`] = `
55
<div
66
class="pf-v6-c-page__sidebar-body"
77
id="page-sidebar-body"
8+
style="overflow-y: auto;"
89
>
910
<nav
1011
aria-label="Global"

0 commit comments

Comments
 (0)