Skip to content

Commit c7f0831

Browse files
committed
Fix Feature card Youtube video stories
1 parent 599d5c8 commit c7f0831

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

dotcom-rendering/src/components/FeatureCard.stories.tsx

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,10 @@ export const GalleryImmersive: Story = {
282282
},
283283
};
284284

285-
// A video article
286-
export const Video: Story = {
285+
/**
286+
* A video article
287+
*/
288+
export const YoutubeVideo: Story = {
287289
args: {
288290
format: {
289291
...cardProps.format,
@@ -303,22 +305,26 @@ export const Video: Story = {
303305
title: 'Video Title',
304306
duration: 120,
305307
expired: false,
306-
image: 'https://media.guim.co.uk/video-thumbnail.jpg',
308+
image: 'https://media.guim.co.uk/f2aedd24e5414073a653f68112e0ad070c6f4a2b/254_0_7493_4500/master/7493.jpg',
307309
},
310+
canPlayInline: true,
311+
showVideo: true,
308312
},
309313
};
310314

311-
export const VideoImmersive: Story = {
315+
export const YoutubeVideoImmersive: Story = {
312316
args: {
313-
...Video.args,
317+
...YoutubeVideo.args,
314318
...Immersive.args,
315319
},
316320
};
317321

318-
// A standard (non-video) article with a video main media
319-
export const VideoMainMedia: Story = {
322+
/**
323+
* A standard (non-video) article with a video main media
324+
*/
325+
export const YoutubeVideoMainMedia: Story = {
320326
args: {
321-
...Video.args,
327+
...YoutubeVideo.args,
322328
image: {
323329
src: 'https://media.guim.co.uk/4612af5f4667888fa697139cf570b6373d93a710/2446_345_3218_1931/master/3218.jpg',
324330
altText: 'alt text',
@@ -330,9 +336,9 @@ export const VideoMainMedia: Story = {
330336
},
331337
};
332338

333-
export const VideoMainMediaImmersive: Story = {
339+
export const YoutubeVideoMainMediaImmersive: Story = {
334340
args: {
335-
...VideoMainMedia.args,
341+
...YoutubeVideoMainMedia.args,
336342
...Immersive.args,
337343
},
338344
};

0 commit comments

Comments
 (0)