Skip to content

Page - updated logic for rendering PageMainBody #674

@thatblindgeye

Description

@thatblindgeye

Follow up to breaking change PR patternfly/patternfly-react#10650

Previously isWidthLimited prop controlled whether children passed to certain Page components woudl be wrapped in a __main-body element. That is no longer the case. We should probably just provide a warning for that + mentioning we have a new hasMainBodyWrapper prop to control this wrapper element (though intended for when multiple PageMainBody's are desired).

We've also removed the PageNavigation component and the "nav" PageSection typing.

Required actions:

  1. Build codemod
  2. Build test
  3. Update readme with description & example

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions