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
Copy file name to clipboardExpand all lines: dotcom-rendering/src/components/Card/Card.tsx
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -519,8 +519,9 @@ export const Card = ({
519
519
`}
520
520
`}
521
521
>
522
-
{/* Ordinarily, it's either the pill or the footer, but we want to display the date on these cards
523
-
if they appear in the storylines section on tag pages.
522
+
{/* Usually, we either display the pill or the footer,
523
+
but if the card appears in the storylines section on tag pages
524
+
then we do want to display the date on these cards as well as the media pill.
524
525
*/}
525
526
{storylinesStyle&&(
526
527
<CardFooter
@@ -765,7 +766,7 @@ export const Card = ({
765
766
<SupportingKeyStoriesContent
766
767
supportingContent={supportingContent}
767
768
containerPalette={containerPalette}
768
-
alignment={supportingContentAlignment}
769
+
alignment="vertical"
769
770
isMedia={isMediaCard(format)}
770
771
fillBackgroundOnMobile={false}
771
772
fillBackgroundOnDesktop={
@@ -1250,12 +1251,12 @@ export const Card = ({
1250
1251
isOnwardContent,
1251
1252
)}
1252
1253
>
1253
-
{/* This div is needed to keep the headline and trail text justified at the start */}
1254
1254
{/* In the storylines section on tag pages, the flex splash is used to display key stories.
1255
-
This is shown as a large image taken from the first article in the group, and the headlines of the first four key articles (include that of the first article).
1256
-
Therefore, we don't display an article headline in the conventional sense, these are displayed as "supporting content".
1257
-
However, simply passing an empty string as the article headline still reserves space, so this check enables us to avoid rendering that space at all.
1258
-
*/}
1255
+
We don't display an article headline in the conventional sense, the key stories are instead displayed as "supporting content".
1256
+
However, simply passing an empty string as the article headline still reserves space.
1257
+
The storylines check enables us to avoid rendering that space at all.
1258
+
*/}
1259
+
{/* the div is needed to keep the headline and trail text justified at the start */}
/** In the storylines section on tag pages, the flex splash is used to display key stories.
134
131
This is shown as a large image taken from the first article in the group, and the headlines of the first four key articles (include that of the first article).
0 commit comments