File tree Expand file tree Collapse file tree 2 files changed +51
-1
lines changed
dotcom-rendering/src/components/Card Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Original file line number Diff line number Diff line change @@ -1714,3 +1714,51 @@ export const WithAVerticalGapWhenScrollableSmallContainer = () => {
1714
1714
</ >
1715
1715
) ;
1716
1716
} ;
1717
+
1718
+ export const WithBetaContainerAndSublinks = ( ) => {
1719
+ return (
1720
+ < CardGroup >
1721
+ { /* With an image */ }
1722
+ < CardWrapper >
1723
+ < Card
1724
+ { ...basicCardProps }
1725
+ image = { undefined }
1726
+ containerType = "flexible/general"
1727
+ imagePositionOnMobile = "bottom"
1728
+ supportingContent = { [
1729
+ {
1730
+ ...aBasicLink ,
1731
+ headline : 'Headline 1' ,
1732
+ kickerText : 'Kicker' ,
1733
+ } ,
1734
+ {
1735
+ ...aBasicLink ,
1736
+ headline : 'Headline 2' ,
1737
+ kickerText : 'Kicker' ,
1738
+ } ,
1739
+ ] }
1740
+ />
1741
+ </ CardWrapper >
1742
+ { /* Without an image */ }
1743
+ < CardWrapper >
1744
+ < Card
1745
+ { ...basicCardProps }
1746
+ containerType = "flexible/general"
1747
+ imagePositionOnMobile = "bottom"
1748
+ supportingContent = { [
1749
+ {
1750
+ ...aBasicLink ,
1751
+ headline : 'Headline 1' ,
1752
+ kickerText : 'Kicker' ,
1753
+ } ,
1754
+ {
1755
+ ...aBasicLink ,
1756
+ headline : 'Headline 2' ,
1757
+ kickerText : 'Kicker' ,
1758
+ } ,
1759
+ ] }
1760
+ />
1761
+ </ CardWrapper >
1762
+ </ CardGroup >
1763
+ ) ;
1764
+ } ;
Original file line number Diff line number Diff line change @@ -693,7 +693,9 @@ export const Card = ({
693
693
isDynamo = { isDynamo }
694
694
fillBackgroundOnMobile = {
695
695
! ! isFlexSplash ||
696
- ( isBetaContainer && imagePositionOnMobile === 'bottom' )
696
+ ( isBetaContainer &&
697
+ ! ! image &&
698
+ imagePositionOnMobile === 'bottom' )
697
699
}
698
700
/>
699
701
) ;
You can’t perform that action at this time.
0 commit comments