Skip to content

fix(Wizard): updated styling for wizard body#6807

Merged
mattnolting merged 2 commits into
patternfly:v6from
thatblindgeye:wizardBodyStyling
Jun 24, 2024
Merged

fix(Wizard): updated styling for wizard body#6807
mattnolting merged 2 commits into
patternfly:v6from
thatblindgeye:wizardBodyStyling

Conversation

@thatblindgeye

@thatblindgeye thatblindgeye commented Jun 20, 2024

Copy link
Copy Markdown
Contributor

Closes #6809

@thatblindgeye thatblindgeye requested a review from mcoker June 20, 2024 15:53
@patternfly-build

patternfly-build commented Jun 20, 2024

Copy link
Copy Markdown
Collaborator

@thatblindgeye thatblindgeye linked an issue Jun 20, 2024 that may be closed by this pull request
3 tasks
@mcoker mcoker requested a review from srambach June 20, 2024 21:18
@mcoker

mcoker commented Jun 20, 2024

Copy link
Copy Markdown
Contributor

@srambach tl;dr this is to support the drawer placed as a child of wizard__main -> wizard__main-body.pf-m-no-padding. Just want to make sure that adding display: flex/column to __main and flex-grow: 1 to wizard__main-body:last-child doesn't break anything else.

@mcoker mcoker 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.

🎃👍

.#{$wizard}__main {
z-index: var(--#{$wizard}__main--ZIndex);
display: flex;
flex: 1 1 auto;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think you'll want to remove this line as default flex values resolve to:

flex-grow: 0;
flex-shrink: 1;
flex-basis: auto;

And all you need to update is :last-child if that's an agreeable solution.

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.

At least for the flex property that should still be needed so that the wizard main element fills whatever space to match the current behavior when a drawer is rendered inside wizard main.

@mcoker can't recall what the discussion was, but was flex-grow on the :last-child necessary? Believe testing these styles in my React PR omitting the flex-grow on last child doesn't change anything (though i may just not be using the combo of elements to notice a difference)

@mattnolting mattnolting left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LPTM 🔥

@mattnolting mattnolting merged commit b3279c7 into patternfly:v6 Jun 24, 2024
@patternfly-build

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.0.0-alpha.171 🎉

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.

Bug - Wizard v6 - add styling for wizard main/body

4 participants