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

fix(PageHeader): enable canary ActionBar inside of PageHeader #5332

Conversation

matthewgallo
Copy link
Member

@matthewgallo matthewgallo commented May 23, 2024

Closes #4979

When we moved the ActionBar from internal to canary it caused issues in the PageHeader because it wasn't being enabled (which is required for all canary components), whether they are used within our @carbon/ibm-products components or elsewhere.

The bug can be reproduced locally by removing the following two lines in packages/core/.storybook/preview.js . Explicitly enabling the ActionBar within the PageHeader component fixed this issue.

This stack blitz reproduces the issue.

What did you change?

packages/ibm-products/src/components/PageHeader/PageHeader.tsx

How did you test and verify your work?

Removed enabling of all canary components locally within storybook and verified that the canary message is gone and the component renders after adding pkg.component.ActionBar = true; to PageHeader.tsx.

@matthewgallo matthewgallo requested a review from a team as a code owner May 23, 2024 19:39
@matthewgallo matthewgallo requested review from kennylam and sangeethababu9223 and removed request for a team May 23, 2024 19:39
Copy link

netlify bot commented May 23, 2024

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit 0cc6593
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/664f9b7c01e82d0008564741
😎 Deploy Preview https://deploy-preview-5332--carbon-for-ibm-products.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@szinta szinta self-requested a review May 29, 2024 13:59
@elycheea elycheea added this pull request to the merge queue May 30, 2024
Merged via the queue into carbon-design-system:main with commit 662bbe2 May 30, 2024
20 checks passed
@matthewgallo matthewgallo deleted the 4979-page-header-using-canary-component branch May 30, 2024 16:59
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.

PageHeader broken ActionBar as a result of #4587
3 participants