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(cta): cause ctas to only respond to relevant video events #12169

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

m4olivei
Copy link
Contributor

@m4olivei m4olivei commented Dec 16, 2024

Depends on #12168 in some build environments.

Related Ticket(s)

ADCMS-6749

Description

Fixes an issue where cta components would listen for any video fetch event and respond by putting the title into its rendered output, even though the video request came from another unrelated component.

Here is a branch of carbon-demo that uses this PR's deploy preview to show the fix: https://github.com/m4olivei/carbon-demo/tree/video-text-cta

Changelog

Changed

  • Restrict cta components to listening only for video events for a video configured on itself.

@m4olivei m4olivei requested a review from a team as a code owner December 16, 2024 17:12
@m4olivei m4olivei requested review from bruno-amorim, marcelojcs, andy-blum and Valentin-Sorin-Nicolae and removed request for a team December 16, 2024 17:12
@m4olivei m4olivei added the test: CDN preview used for generating @carbon/ibmdotcom-web-components CDN for testing label Dec 16, 2024
@m4olivei m4olivei closed this Dec 16, 2024
@m4olivei m4olivei reopened this Dec 16, 2024
Copy link

netlify bot commented Dec 16, 2024

Deploy Preview for ibm-dotcom-web-components-react-wrap ready!

Name Link
🔨 Latest commit c4138e4
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components-react-wrap/deploys/6762eaf3334dd60008817889
😎 Deploy Preview https://deploy-preview-12169--ibm-dotcom-web-components-react-wrap.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 Dec 16, 2024

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

Name Link
🔨 Latest commit c4138e4
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components/deploys/6762eaf319d06100086b2a91
😎 Deploy Preview https://deploy-preview-12169--ibm-dotcom-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.

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Dec 16, 2024

Deploy preview created for package IBM.com Web Components Deploy Preview CDN:
https://ibmdotcom-cdn.s3.us-east.cloud-object-storage.appdomain.cloud/deploy-previews/12169/index.html

Built with commit: c4138e4493b59f4f54d8b5f346e04f03050e8061

@andy-blum andy-blum merged commit 2720e55 into main Dec 18, 2024
7 of 8 checks passed
@andy-blum andy-blum deleted the fix/cta-video branch December 18, 2024 15:32
Copy link
Contributor

Hey there! This issue/pull request was referenced in recently released v2.16.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high test: CDN preview used for generating @carbon/ibmdotcom-web-components CDN for testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants