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

EmbedCard improvements #4503

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

EmbedCard improvements #4503

wants to merge 5 commits into from

Conversation

patrickpatrickpatrick
Copy link
Contributor

@patrickpatrickpatrick patrickpatrickpatrick commented Feb 24, 2025

What

To address comments left on the previous PR.

Why

So that the EmbedCard component can be used to enhance the site.

If `IntersectionObserver` is not supported by the browser (it's not
present on `window`) then don't run the `IntersectionObserver` code in
`application.mjs` to enable lazy-load of the Youtube embeds. Instead,
the fallback (linking to the Youtube video) will be used.
Remove confusing `.app-campaign-cookie-banner
.govuk-grid-column-two-thirds` selector and replace with `div`.
@patrickpatrickpatrick patrickpatrickpatrick changed the title yt embed improve EmbedCard improvements Feb 24, 2025
Copy link

netlify bot commented Feb 24, 2025

You can preview this change here:

Name Link
🔨 Latest commit a25bc56
🔍 Latest deploy log https://app.netlify.com/sites/govuk-design-system-preview/deploys/67bca98a483be500088a7471
😎 Deploy Preview https://deploy-preview-4503--govuk-design-system-preview.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.

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