Skip to content

fix(compass): add support for expanded#7987

Merged
mcoker merged 8 commits into
patternfly:mainfrom
mcoker:issue-7983
Nov 13, 2025
Merged

fix(compass): add support for expanded#7987
mcoker merged 8 commits into
patternfly:mainfrom
mcoker:issue-7983

Conversation

@mcoker

@mcoker mcoker commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

fixes #7983

  • Toggle .pf-m-expanded on any of the header/sidebars/footer to have it show/hide
  • Fixes sidebar padding (regression from fix(compass): restructure navigation to include home and search #7985)
  • Fixes the border that goes on the compass sections in the component example - broke when we moved the example from "components" to the AI section
  • Removes an unnecessary padding that was around the right/end sidebar
  • Removes some commented out code
  • Updates fullscreen screenshots. Most of them are from the text underline change it looks like?

@mcoker mcoker requested a review from kmcfaul November 11, 2025 02:42
@patternfly-build

patternfly-build commented Nov 11, 2025

Copy link
Copy Markdown
Collaborator

@thatblindgeye thatblindgeye self-requested a review November 11, 2025 16:07

@thatblindgeye thatblindgeye left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Question/potential change below. Also do we have it tracked to have a demo showing how one could go about handling the expanding functionality in React, or can that be handled by any generic followup for cleaning up demos/examples?

Comment on lines +2 to +4
{{#unless compass-footer--IsCollapsed}}
pf-m-expanded
{{/unless}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For these 3 components, do we want to just add inert as well when it's collapsed to be doubly sure content can't be accessed?

@srambach srambach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does rearranging to put the message bar into the main content mean that it will need to handle expanding, or if that's desired the user will have to use the footer?

Comment on lines +170 to +175
translate: -100%;
}

&.pf-m-end {
grid-area: sidebar-end;
translate: 100%;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You'll need an RTL value of the inverse so it slides the correct direction

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

**shakes fist angrily** darn you RTL, you have foiled me once again!

@mcoker

mcoker commented Nov 12, 2025

Copy link
Copy Markdown
Contributor Author

@srambach @thatblindgeye

  • fixed RTL slide direction
  • updated the grid spacing to use the page-chrome-inset token per the working sesh this morning
  • added inert when not expanded
  • made the __main-footer expand/collapse like the other sections

I'll open a separate PR to smooth out the animation per @lboehling's comment this morning

@srambach srambach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

L 🪗 TM

@mcoker mcoker merged commit 5b6ba6b into patternfly:main Nov 13, 2025
4 checks passed
@mcoker mcoker deleted the issue-7983 branch November 13, 2025 00:34
@patternfly-build

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.5.0-prerelease.26 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

Compass - expanded/collapsed sections

5 participants