Skip to content

Commit 59e62c1

Browse files
authored
Bug fix: className passed to PageLayout twice (#5816)
1 parent e0ce1fc commit 59e62c1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/metal-carrots-compare.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Bug fix: `className` passed to PageLayout twice

packages/react/src/PageLayout/PageLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const Root: React.FC<React.PropsWithChildren<PageLayoutProps>> = ({
117117

118118
const contentStylingProps = enabled
119119
? {
120-
className: clsx(classes.PageLayoutContent, className),
120+
className: clsx(classes.PageLayoutContent),
121121
}
122122
: {
123123
sx: {display: 'flex', flex: '1 1 100%', flexWrap: 'wrap', maxWidth: '100%'},

0 commit comments

Comments
 (0)