Merge pull request #172 from reuters-graphics/ad-iframes

Ad iframes
This commit is contained in:
Jon McClure 2024-08-28 09:24:08 +01:00 committed by GitHub
commit df900d0077
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 9 deletions

View file

@ -0,0 +1,5 @@
---
'@reuters-graphics/graphics-components': patch
---
Excludes Google ads from iframe reset

View file

@ -53,11 +53,3 @@
</script>
<div data-freestar-ad="{dataFreestarAd || null}" id="{adId}"></div>
<style lang="scss">
div {
:global(iframe) {
width: 100%;
}
}
</style>

View file

@ -34,7 +34,7 @@ figure {
@include fmx-auto;
}
iframe {
iframe:not([id^='google_ads_iframe_']) {
border: 0;
width: 100%;
}