diff --git a/src/PageHeader/PageHeader.stories.tsx b/src/PageHeader/PageHeader.stories.tsx index 4c076e19c7b..610cc485fca 100644 --- a/src/PageHeader/PageHeader.stories.tsx +++ b/src/PageHeader/PageHeader.stories.tsx @@ -1,10 +1,8 @@ import React from 'react' import {Meta, Story} from '@storybook/react' -import {Button, IconButton, Breadcrumbs} from '..' +import {Box, Button, IconButton, Breadcrumbs} from '..' import {EyeClosedIcon, SearchIcon, TriangleDownIcon} from '@primer/octicons-react' -//import {Box, BranchName, Heading, Link, StateLabel, TabNav, Text} from '..' - import {PageHeader} from './PageHeader' const meta: Meta = { @@ -24,7 +22,12 @@ const Template: Story = args => ( Branches - + + + + + + diff --git a/src/PageHeader/PageHeader.tsx b/src/PageHeader/PageHeader.tsx index 2d473368aa1..a920f305622 100644 --- a/src/PageHeader/PageHeader.tsx +++ b/src/PageHeader/PageHeader.tsx @@ -61,7 +61,7 @@ const ContextNav: React.FC> = ({ flexShrink: 1, minWidth: 1 // Hack to prevent overflowing content from pushing the pane region to the next line } - return {children} + return (contentNavStyles, sx)}>{children} } const ParentLink: React.FC> = ({children, sx = {}}) => { return {children}