Skip to content

Commit

Permalink
fix(PageHeader): use display block insteaf of flex when FF off (#5402)
Browse files Browse the repository at this point in the history
* fix(PageHeader): use display block insteaf of flex when FF off

* Create cold-bags-move.md
  • Loading branch information
francinelucca authored Dec 9, 2024
1 parent d57b1de commit 6978865
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cold-bags-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

fix(PageHeader): use display block insteaf of flex when FF off
2 changes: 1 addition & 1 deletion packages/react/src/PageHeader/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ const Title: React.FC<React.PropsWithChildren<TitleProps>> = ({
display: 'flex',
order: TITLE_AREA_REGION_ORDER.Title,
...getBreakpointDeclarations(hidden, 'display', value => {
return value ? 'none' : 'flex'
return value ? 'none' : 'block'
}),
fontSize: 'inherit',
fontWeight: 'inherit',
Expand Down

0 comments on commit 6978865

Please sign in to comment.