diff --git a/.changeset/polite-pianos-enjoy.md b/.changeset/polite-pianos-enjoy.md new file mode 100644 index 00000000000..93c38b73338 --- /dev/null +++ b/.changeset/polite-pianos-enjoy.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +PageLayout: update wrapper dimensions to match PageLayout's root element diff --git a/packages/react/src/PageLayout/PageLayout.module.css b/packages/react/src/PageLayout/PageLayout.module.css index 453ccba6ddb..d8cbee7e572 100644 --- a/packages/react/src/PageLayout/PageLayout.module.css +++ b/packages/react/src/PageLayout/PageLayout.module.css @@ -70,6 +70,9 @@ body[data-page-layout-dragging='true'] * { margin-right: auto; margin-left: auto; flex-wrap: wrap; + /* the wrapper should match the Root's dimensions by default */ + width: 100%; + height: 100%; &:where([data-width='medium']) { max-width: 768px;