Skip to content

extend divider to parent by setting props by default on the root container (BoxWithFallback) in the PageLayout component #5967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dwsosa
Copy link
Contributor

@dwsosa dwsosa commented Apr 24, 2025

Closes #4351

The PageLayout component is not opinionated about layout. By adjusting the props, it will fill its parent, and the divider will extend as expected:

BEFORE

before making the change

AFTER
divider now extends to the height of the parent

Changelog

New

Changed

Removed

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

…(BoxWithFallback) in the PageLayout component
@dwsosa dwsosa requested a review from a team as a code owner April 24, 2025 18:26
@dwsosa dwsosa requested a review from joshblack April 24, 2025 18:26
Copy link

changeset-bot bot commented Apr 24, 2025

🦋 Changeset detected

Latest commit: 87593a5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dwsosa dwsosa changed the title extend divider to parent by setting props by default to on the root container (BoxWithFallback) in the PageLayout component extend divider to parent by setting props by default on the root container (BoxWithFallback) in the PageLayout component Apr 24, 2025
Copy link
Member

@joshblack joshblack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to make a Pull Request! Appreciate it 🙏

Just left one comment, let me know what you think!

Comment on lines +112 to +113
display: 'flex', // Makes PageLayout a flex container
flex: 1, // Fills available space in the parent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind moving these styles to the PageLayoutRoot class in the CSS Modules file for this component? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PageLayout doesn't extend the sidebar divider when extending the height.
2 participants