-
Notifications
You must be signed in to change notification settings - Fork 376
feat(Drawer, DataList, Page): rename noPadding to hasNoPadding #4133
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
Conversation
|
PF4 preview: https://patternfly-react-pr-4133.surge.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hasNoPadding sounds weird to me, but looks good otherwise. I might have gone with hasPadding and default true
jessiehuff
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
boaz0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
tlabaj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Can you please add the Breaking change comments to description.
Can you also update demo-app and integration test with the new props.
redallen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also have a merge conflict. Thanks for working on this @kmcfaul !
| isHidden?: boolean; | ||
| /** Flag to remove padding from the expandable content */ | ||
| noPadding?: boolean; | ||
| hasNoPadding?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this to hasPadding and default it to true? Sounds a little better and codemods fix it all the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tlabaj Thoughts?
I don't mind either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping as hasNoPadding per standup discussion for now
39ddcf2 to
983d190
Compare
…age padding breakpoints
983d190 to
f75f6e1
Compare
redallen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think hasNo props should just be has, but this is outside the scope of this PR. LGTM!
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
And add Page padding breakpoint logic
What: Closes #4013, #4039, #4040
Breaking changes
noPaddingtohasNoPaddingfor Drawer, DataList and Page components.hasPaddingOnandhasNoPaddingOnproperties to PageSection, accounting for page size breakpoints. Breakpoints are defined in thePageSectionBreakpointsenum.