Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/clever-bears-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Fix display bug for `PageHeader` component title.
6 changes: 5 additions & 1 deletion packages/react/src/PageHeader/PageHeader.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,16 @@

.Title {
/* using flex and order to display the title in the title area. */
display: flex;
display: block;
order: var(--title-area-region-order-title);
font-size: inherit;
font-weight: inherit;
}

.Title:where([data-hidden='true']) {
display: none;
}

.TrailingVisual {
/* using flex and order to display the trailing visual in the title area. */
display: flex;
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/PageHeader/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ const Title: React.FC<React.PropsWithChildren<TitleProps>> = ({
<Heading
className={clsx(enabled && classes.Title, className)}
data-component="PH_Title"
data-hidden={hidden}
as={as}
style={style}
sx={
Expand Down
Loading