File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
dotcom-rendering/src/components/marketing/banners/designableBanner Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ const DesignableBanner: ReactComponent<BannerRenderProps> = ({
345
345
}
346
346
/>
347
347
</ div >
348
- { showAboveArticleCount && (
348
+ { showAboveArticleCount && ! isCollapsed && (
349
349
< div css = { styles . articleCountContainer } >
350
350
< DesignableBannerArticleCount
351
351
numArticles = { articleCounts . forTargetedWeeks }
@@ -355,6 +355,7 @@ const DesignableBanner: ReactComponent<BannerRenderProps> = ({
355
355
</ div >
356
356
) }
357
357
{ tickerSettings ?. tickerData &&
358
+ ! isCollapsed &&
358
359
templateSettings . tickerStylingSettings && (
359
360
< div css = { templateSpacing . bannerTicker } >
360
361
< Ticker
@@ -389,7 +390,7 @@ const DesignableBanner: ReactComponent<BannerRenderProps> = ({
389
390
) }
390
391
</ div >
391
392
392
- { templateSettings . imageSettings && (
393
+ { templateSettings . imageSettings && ! isCollapsed && (
393
394
< div css = { styles . bannerVisualContainer } >
394
395
< DesignableBannerVisual
395
396
settings = { templateSettings . imageSettings }
Original file line number Diff line number Diff line change @@ -357,5 +357,24 @@ export const CollapsableWithThreeTierChoiceCards: Story = {
357
357
} ,
358
358
choiceCardAmounts : regularChoiceCardAmounts ,
359
359
choiceCardsSettings,
360
+ tickerSettings,
361
+ separateArticleCountSettings : {
362
+ type : 'above' ,
363
+ } ,
364
+ } ,
365
+ } ;
366
+
367
+ export const CollapsableWithMainImage : Story = {
368
+ name : 'Collapsable with main image' ,
369
+ args : {
370
+ ...meta . args ,
371
+ design : {
372
+ ...design ,
373
+ visual : regularImage ,
374
+ } ,
375
+ tracking : {
376
+ ...tracking ,
377
+ abTestVariant : 'COLLAPSABLE_V1' ,
378
+ } ,
360
379
} ,
361
380
} ;
You can’t perform that action at this time.
0 commit comments