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(coachmark): Add default opening for not-stacked coachmarks #6516

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

gcattan
Copy link

@gcattan gcattan commented Nov 27, 2024

Closes #5709

Add a property to open the coachmark by default.

What did you change?

Add the property isOpenByDefault to the coachmark, which applies in the case the coachmark is not a stacked coachmark.
image

How did you test and verify your work?

Added two tests to the suite:

  1. Test that the coachmark is open if isOpenByDefault is true
  2. Test that a stacked coachmark is open, even if isOpenByDefault is false.

Copy link
Contributor

github-actions bot commented Nov 27, 2024

DCO Assistant Lite bot All contributors have signed the DCO.

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for ibm-products-web-components ready!

Name Link
🔨 Latest commit e0caed5
🔍 Latest deploy log https://app.netlify.com/sites/ibm-products-web-components/deploys/6748b25e9549c300071a9175
😎 Deploy Preview https://deploy-preview-6516--ibm-products-web-components.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.

Copy link

netlify bot commented Nov 27, 2024

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

Name Link
🔨 Latest commit e0caed5
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/6748b25ef5d40c0008413a9d
😎 Deploy Preview https://deploy-preview-6516--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.

@gcattan
Copy link
Author

gcattan commented Nov 27, 2024

I have read the DCO document and I hereby sign the DCO.

@gcattan gcattan changed the title Feat/5709 default opening not stacked coachmark Feat(coachmark): Add default opening for not-stacked coachmarks Nov 27, 2024
@gcattan gcattan changed the title Feat(coachmark): Add default opening for not-stacked coachmarks feat(coachmark): Add default opening for not-stacked coachmarks Nov 27, 2024
@gcattan
Copy link
Author

gcattan commented Nov 27, 2024

I have read the DCO document and I hereby sign the DCO.

@gcattan gcattan marked this pull request as ready for review November 27, 2024 21:16
@gcattan gcattan requested a review from a team as a code owner November 27, 2024 21:16
@gcattan gcattan requested review from AlexanderMelox and devadula-nandan and removed request for a team November 27, 2024 21:16
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.87%. Comparing base (9f31fc3) to head (64db6ae).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6516      +/-   ##
==========================================
+ Coverage   79.85%   79.87%   +0.01%     
==========================================
  Files         394      394              
  Lines       12877    12878       +1     
  Branches     4258     4260       +2     
==========================================
+ Hits        10283    10286       +3     
+ Misses       2594     2592       -2     
Components Coverage Δ
ibm-products ∅ <ø> (∅)
ibm-products-web-components ∅ <ø> (∅)

Copy link
Contributor

@devadula-nandan devadula-nandan left a comment

Choose a reason for hiding this comment

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

The implementation looks good. Could you please add a control in the component API section of the documentation to reference this prop?

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.

[Feature Request]: Add an option to open by default not-stacked coachmarks
2 participants