Skip to content

Commit

Permalink
noscript image fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amoore108 committed Sep 27, 2024
1 parent a7f0fdb commit 994be3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/app/components/MediaLoader/Amp/index.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,16 @@ export default {
backgroundColor: 'window',
},
}),
messageImage: () => css({ width: '100%' }),
messageImage: () =>
css({
position: 'absolute',
inset: 0,
width: '100%',
height: '100%',
}),
ampIframeWrapper: ({ palette }: Theme) =>
css({
position: 'relative',
overflow: 'hidden',
backgroundColor: palette.LUNAR,
height: '100%',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ exports[`AMP Story Page Image Caption should match text 1`] = `"Bayanan sautiम

exports[`AMP Story Page Image should match snapshot 1`] = `
<noscript>
&lt;div&gt;&lt;img alt="" src="https://ichef.test.bbci.co.uk/images/ic/512xn/p01b7w9z.jpg.webp" srcSet="https://ichef.test.bbci.co.uk/images/ic/240xn/p01b7w9z.jpg.webp 240w, https://ichef.test.bbci.co.uk/images/ic/320xn/p01b7w9z.jpg.webp 320w, https://ichef.test.bbci.co.uk/images/ic/480xn/p01b7w9z.jpg.webp 480w, https://ichef.test.bbci.co.uk/images/ic/624xn/p01b7w9z.jpg.webp 624w, https://ichef.test.bbci.co.uk/images/ic/800xn/p01b7w9z.jpg.webp 800w" aria-hidden="true" class="bbc-8atqhb"/&gt;&lt;div class="bbc-1mgo2mg"&gt;&lt;strong class="bbc-pow7hy"&gt;Na&#x27;urarku na da matsalar sauraren sauti&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;&lt;img alt="" src="https://ichef.test.bbci.co.uk/images/ic/512xn/p01b7w9z.jpg.webp" srcSet="https://ichef.test.bbci.co.uk/images/ic/240xn/p01b7w9z.jpg.webp 240w, https://ichef.test.bbci.co.uk/images/ic/320xn/p01b7w9z.jpg.webp 320w, https://ichef.test.bbci.co.uk/images/ic/480xn/p01b7w9z.jpg.webp 480w, https://ichef.test.bbci.co.uk/images/ic/624xn/p01b7w9z.jpg.webp 624w, https://ichef.test.bbci.co.uk/images/ic/800xn/p01b7w9z.jpg.webp 800w" aria-hidden="true" class="bbc-1ukiuui"/&gt;&lt;div class="bbc-1mgo2mg"&gt;&lt;strong class="bbc-pow7hy"&gt;Na&#x27;urarku na da matsalar sauraren sauti&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
</noscript>
`;

Expand Down

0 comments on commit 994be3c

Please sign in to comment.