Skip to content

Commit

Permalink
Merge pull request #2088 from epwinchell/page_header_fix
Browse files Browse the repository at this point in the history
Fix: PageHeader component
  • Loading branch information
epwinchell authored Oct 23, 2024
2 parents 00f5508 + d0b77c9 commit b427e19
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/PageHeader/PageHeaderTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const PageHeaderTitle: React.FC<PageHeaderTitleProps> = ({ className, title, act

return (
<Flex justifyContent={{ default: 'justifyContentSpaceBetween' }}>
<FlexItem className="pf-v5-u-flex-grow-1">
<div className="pf-v5-u-flex-grow-1">
<Title
headingLevel="h1"
size="2xl"
Expand All @@ -37,7 +37,7 @@ const PageHeaderTitle: React.FC<PageHeaderTitleProps> = ({ className, title, act
>
{title}
</Title>
</FlexItem>
</div>
{actionsContent ? <FlexItem>{actionsContent}</FlexItem> : null}
</Flex>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,29 @@ exports[`PageHeader component should render 1`] = `
<div
className="pf-v5-l-flex pf-m-justify-content-space-between"
>
<FlexItem
<div
className="pf-v5-u-flex-grow-1"
>
<div
className="pf-v5-u-flex-grow-1"
<Title
className=""
data-ouia-component-id="OUIA-Generated-RHI/Header-true-1"
data-ouia-component-type="RHI/Header"
data-ouia-safe={true}
headingLevel="h1"
size="2xl"
widget-type="InsightsPageHeaderTitle"
>
<Title
className=""
<h1
className="pf-v5-c-title pf-m-2xl"
data-ouia-component-id="OUIA-Generated-RHI/Header-true-1"
data-ouia-component-type="RHI/Header"
data-ouia-safe={true}
headingLevel="h1"
size="2xl"
widget-type="InsightsPageHeaderTitle"
>
<h1
className="pf-v5-c-title pf-m-2xl"
data-ouia-component-id="OUIA-Generated-RHI/Header-true-1"
data-ouia-component-type="RHI/Header"
data-ouia-safe={true}
widget-type="InsightsPageHeaderTitle"
>
Something
</h1>
</Title>
</div>
</FlexItem>
Something
</h1>
</Title>
</div>
</div>
</Flex>
</PageHeaderTitle>
Expand Down

0 comments on commit b427e19

Please sign in to comment.