Skip to content

Conversation

@kmcfaul
Copy link
Contributor

@kmcfaul kmcfaul commented Apr 27, 2020

And add Page padding breakpoint logic

What: Closes #4013, #4039, #4040

Breaking changes

  1. Renamed noPadding to hasNoPadding for Drawer, DataList and Page components.
  2. Added hasPaddingOn and hasNoPaddingOn properties to PageSection, accounting for page size breakpoints. Breakpoints are defined in the PageSectionBreakpoints enum.

@patternfly-build
Copy link
Collaborator

patternfly-build commented Apr 27, 2020

Copy link
Member

@dlabrecq dlabrecq left a 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

Copy link
Contributor

@jessiehuff jessiehuff left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@boaz0 boaz0 left a comment

Choose a reason for hiding this comment

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

👍

@tlabaj tlabaj added the Breaking change 💥 this change requires a major release and has API changes. label Apr 29, 2020
tlabaj
tlabaj previously requested changes Apr 29, 2020
Copy link
Contributor

@tlabaj tlabaj left a 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.

Copy link
Contributor

@redallen redallen left a 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;
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

@kmcfaul kmcfaul force-pushed the breaking-paddingvar branch from 39ddcf2 to 983d190 Compare May 6, 2020 17:22
@kmcfaul kmcfaul force-pushed the breaking-paddingvar branch from 983d190 to f75f6e1 Compare May 6, 2020 18:24
Copy link
Contributor

@redallen redallen left a 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!

@redallen redallen dismissed tlabaj’s stale review May 7, 2020 16:13

Comments added and tests updated.

@redallen redallen merged commit 9d7ee63 into patternfly:v4 May 7, 2020
@patternfly-build
Copy link
Collaborator

Your changes have been released in:

  • @patternfly/react-catalog-view-extension@4.2.22
  • @patternfly/react-core@4.10.0
  • @patternfly/react-docs@5.2.26
  • @patternfly/react-inline-edit-extension@4.3.22
  • demo-app-ts@4.7.0
  • @patternfly/react-integration@4.7.0
  • @patternfly/react-table@4.3.22
  • @patternfly/react-topology@4.2.22
  • @patternfly/react-virtualized-extension@4.2.22

Thanks for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking change 💥 this change requires a major release and has API changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Page - updates to noPadding*

7 participants