Skip to content

Commit

Permalink
Updated logic to always render PageBody for page nav
Browse files Browse the repository at this point in the history
  • Loading branch information
thatblindgeye committed Jul 15, 2024
1 parent c56467f commit 12d2327
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react-core/src/components/Page/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,12 @@ class Page extends React.Component<PageProps, PageState> {
};

let nav = null;
if (horizontalSubnav && isHorizontalSubnavWidthLimited) {
if (horizontalSubnav) {
nav = (
<div className={css(styles.pageMainSubnav, styles.modifiers.limitWidth)}>
<div className={css(styles.pageMainSubnav, isHorizontalSubnavWidthLimited && styles.modifiers.limitWidth)}>
<PageBody>{horizontalSubnav}</PageBody>
</div>
);
} else if (horizontalSubnav) {
nav = <div className={css(styles.pageMainSubnav)}>{horizontalSubnav}</div>;
}

const crumb = breadcrumb ? (
Expand Down

0 comments on commit 12d2327

Please sign in to comment.