Skip to content

Conversation

@lee-chase
Copy link
Member

The PageLayout component interferes with the IBM Products PageHeader.

There are various options to fix this. The existing on uses a parameter to pass a pageHeader, however Carbon often prefers composition as proposed in this PR.

@lee-chase lee-chase requested a review from rodet as a code owner November 5, 2025 18:43
);
const Header = childArray.find((child) => child.type === PageLayoutHeader);

console.log(Header);
Copy link
Member Author

Choose a reason for hiding this comment

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

Remove console log

export const PageLayout = ({ children, className, fallback }) => {
const { theme } = useThemeContext();
const childArray = Children.toArray(children);
console.log(childArray);
Copy link
Member Author

Choose a reason for hiding this comment

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

Remove

@Josip-Ledic Josip-Ledic self-requested a review November 7, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant