Skip to content
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

feat(Page): Deprecate PageHeader component #8854

Merged
merged 2 commits into from Apr 5, 2023

Conversation

nicolethoen
Copy link
Contributor

What: Closes #8602

@patternfly-build
Copy link
Contributor

patternfly-build commented Mar 23, 2023

Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

In addition the the file comments below:

  • In the Page.md file, the Uncontrolled navigation" example still mentions <PageHeader` in the example description.
  • The "Flyout nav" demo in the Nav.md file has PageHeader and PageHeaderTools imported from react-core still

@@ -119,3 +112,10 @@ The content in this example is placed in a card to better illustrate how the sec

```ts file="./PageCenteredSection.tsx"
```

### Deprecated page header
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 move this example into it's own file in the deprecated folder along with the PageHeader. That way it would show up under a deprecated tab. That way the non recommend solution is not shown on the main Page page.
cc @mcarrano what do you think?

Copy link
Member

Choose a reason for hiding this comment

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

@tlabaj I think so, but let me make sure I understand. Are you saying that when the user goes to the Page component, they will then see two React tabs? One with the masthead examples and another called "React deprecated" that has the old example using the PageHeader? I guess that's OK.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. That is what I am saying. This one example using the PageHeader would be in the React deprecated tab.

Copy link
Member

Choose a reason for hiding this comment

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

Then yes, I think that works.

propComponents: ['PageHeader','PageHeaderTools','PageHeaderToolsGroup','PageHeaderToolsItem']
---

## PageHeader
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 to "Page header"

propComponents: ['PageHeader','PageHeaderTools','PageHeaderToolsGroup','PageHeaderToolsItem']
---

## PageHeader examples
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 update this to "Page header examples"

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 done

Copy link
Contributor

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

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

You should be able to move away from the /dist/esm/deprecated imports, but I wouldn't block over it.

@tlabaj
Copy link
Contributor

tlabaj commented Mar 27, 2023

@nicole can you address Austin's comment when you resolve conflicts?

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.

LGTM

Copy link
Member

@mcarrano mcarrano 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 to me!

@tlabaj tlabaj merged commit 57b0843 into patternfly:v5 Apr 5, 2023
10 checks passed
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.

deprecate PageHeader
6 participants