Skip to content

Commit ac5cfd9

Browse files
authored
Remove pauseOffScreen prop from Card (#14401)
* Refactor headline positioning logic * remove pauseOffScreen prop from card as this is not used
1 parent 5700518 commit ac5cfd9

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

dotcom-rendering/src/components/Card/Card.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ export type Props = {
129129
liveUpdatesAlignment?: Alignment;
130130
liveUpdatesPosition?: Position;
131131
onwardsSource?: OnwardsSource;
132-
pauseOffscreenVideo?: boolean;
133132
showVideo?: boolean;
134133
isTagPage?: boolean;
135134
/** Allows the consumer to set an aspect ratio on the image of 5:3, 5:4, 4:5 or 1:1 */
@@ -381,7 +380,6 @@ export const Card = ({
381380
liveUpdatesAlignment = 'vertical',
382381
liveUpdatesPosition = 'inner',
383382
onwardsSource,
384-
pauseOffscreenVideo = false,
385383
showVideo = true,
386384
absoluteServerTimes,
387385
isTagPage = false,
@@ -930,9 +928,6 @@ export const Card = ({
930928
hideCaption={true}
931929
stickyVideos={false}
932930
kickerText={kickerText}
933-
pauseOffscreenVideo={
934-
pauseOffscreenVideo
935-
}
936931
/*
937932
* TODO: IMPROVE THIS MAPPING
938933
*

dotcom-rendering/src/components/Carousel.importable.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,6 @@ const CarouselCard = ({
512512
imageSize={'carousel'}
513513
showClock={!isOnwardContent && true}
514514
showAge={true}
515-
pauseOffscreenVideo={false}
516515
showQuotedHeadline={format.design === ArticleDesign.Comment}
517516
dataLinkName={dataLinkName}
518517
discussionId={discussionId}

0 commit comments

Comments
 (0)