Skip to content

Commit

Permalink
Add immersive padding story
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Jan 16, 2025
1 parent 27db818 commit 086a4df
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions dotcom-rendering/src/components/Caption.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,25 @@ export const ForVideos = {
},
},
} satisfies Story;

export const WhenImmersive = {
args: {
captionText:
'This is how a caption looks with immersive padding. Additional padding is added to the left and right of the caption to compensate for the negative margins applied to immersive images.',
format: Standard.args.format,
isImmersive: true,
},
parameters: {
chromatic: {
modes: {
'vertical mobileMedium': { disable: true },
'vertical mobile': allModes['vertical mobile'],
'vertical mobileLandscape':
allModes['vertical mobileLandscape'],
'vertical phablet': allModes['vertical tablet'],
'vertical desktop': allModes['vertical desktop'],
'vertical leftCol': allModes['vertical leftCol'],
},
},
},
} satisfies Story;

0 comments on commit 086a4df

Please sign in to comment.