8000 fix(page): fix main layout with no sidebar by mcoker · Pull Request #7455 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

fix(page): fix main layout with no sidebar#7455

Merged
mcoker merged 2 commits intopatternfly:mainfrom
mcoker:issue-7357
Apr 14, 2025
Merged

fix(page): fix main layout with no sidebar#7455
mcoker merged 2 commits intopatternfly:mainfrom
mcoker:issue-7357

Conversation

@mcoker
Copy link
Contributor
@mcoker mcoker commented Apr 11, 2025

Partially addresses #7377
Fixes #7452
Fixes #7357

Adds .pf-m-no-sidebar to .pf-v6-c-page for layouts without a sidebar as an opt-in so it doesn't impact existing page layouts.

@patternfly-build
Copy link
Collaborator
patternfly-build commented Apr 11, 2025

@mcoker mcoker marked this pull request as ready for review April 11, 2025 20:28
@srambach
Copy link
Member

Without the masthead, do we care that there is no space at the top of the white area? If the use case really is a whole page and no masthead I think it would look better with some. OTOH if it gets used embedded into something else, I'm not sure but also that seems like a bad idea to embed the whole page in something.

Copy link
Member
@srambach srambach left a comment

Choose a reason for hiding this comment

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

Code looks good - just wondering about providing spacing at the top if there is no masthead.

@mcoker mcoker changed the title fix(page): fix main layout with no masthead/sidebar fix(page): fix main layout with no sidebar Apr 14, 2025
@mcoker
Copy link
Contributor Author
mcoker commented Apr 14, 2025

@srambach good question! My opinion - this is for no sidebar, so I'd say if that works, we could go ahead and get this through. I updated the PR title from "no masthead/sidebar" to just "no sidebar" since that's what it's about - even though it fixed the use case of no masthead/sidebar.

On the top padding, I'm not sure what all use cases there are for layouts without a masthead. Looking at #7357, if I'm looking at the screenshots right, they are creating their own type of masthead, so they likely wouldn't want any sort of top padding. But looking at #7452, this is just an alert on an empty page, so they likely would want top padding.

There is probably a bigger question of whether those layouts are built the way we would expect, but assuming they are, I think we would want to support both. Possibly something like .pf-m-no-masthead, which removes the masthead grid-row and adds top padding to the page layout, and maybe .pf-m-no-padding-top to remove it?

We could tag design to review and give their dime, or merge this and create a follow-up to look at that. I'd probably be inclined to merge this as-is so we can go forward with the patch release. WDYT?

@srambach
Copy link
Member

@mcoker I'm fine to go ahead and merge since it's no worse than it was and it fixes an existing problem.

@mcoker mcoker merged commit e31a56f into patternfly:main Apr 14, 2025
4 checks passed
@mcoker mcoker deleted the issue-7357 branch April 14, 2025 17:58
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 6.3.0-prerelease.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

dlabaj pushed a commit to dlabaj/patternfly that referenced this pull request Apr 22, 2025
dlabaj added a commit that referenced this pull request Apr 22, 2025
* fix(page): fix main layout with no sidebar (#7455)

* fix(CodeEditor): remove command palette underlining (#7458)

---------

Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com>
Co-authored-by: logonoff <git@logonoff.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug - Page - Whitespace on the left side of the screen from sidebar styling Page - Allow main grid without sidebar and masthead

3 participants

0