You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add aspect ratio to card picture image widths
* Add feature immersive as an image size type
* Add feature immersive to card picture image width
* Pass aspect ratio into picture image widths
* remove aspect ratio from picture compontent as its not used
* rearrange aspect ratio on youtube atom picture to be included in imagewidths
* Add option for a mobile aspect ratio
* add isImmersive prop to feature card
* Add mobile aspect ratio prop
* Render a feature card when immersive in flex gen splash
* amend aspect ratios for immersive feature
* Add missing mobile aspect ratio
* Update comment
* Add collection id to tests
* comment out isImmersive prop whilst its not being used
* remove isimmersive render prop
* Use type imports and remove unused props
* revert testing
* Add immersive feature
* Update dotcom-rendering/src/components/FlexibleGeneral.tsx
Co-authored-by: Dominik Lander <[email protected]>
---------
Co-authored-by: Dominik Lander <[email protected]>
Copy file name to clipboardExpand all lines: dotcom-rendering/src/components/FeatureCard.tsx
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -231,8 +231,10 @@ export type Props = {
231
231
discussionApiUrl: string;
232
232
discussionId?: string;
233
233
isExternalLink: boolean;
234
-
/** Alows the consumer to set an aspect ratio on the image of 5:3 or 5:4 */
234
+
/** Alows the consumer to set an aspect ratio on the image */
235
235
aspectRatio?: AspectRatio;
236
+
/** Alows the consumer to set an aspect ratio on the image specifically on mobile breakpoints */
237
+
mobileAspectRatio?: AspectRatio;
236
238
showQuotes?: boolean;
237
239
/**
238
240
* Youtube video requires a unique ID. We append the collectionId to the youtube asset ID, to allow
@@ -241,6 +243,11 @@ export type Props = {
241
243
*/
242
244
collectionId: number;
243
245
isNewsletter?: boolean;
246
+
/**
247
+
* An immersive feature card variant. It dictates that the card has a full width background image on all breakpoints. It also dictates the the card change aspect ratio to 5:3 on desktop and 4:5 on mobile.
0 commit comments