From 03f7b523add7a8ae4a19c5660ad8fa29cbcaeb08 Mon Sep 17 00:00:00 2001 From: Frederick O'Brien Date: Fri, 3 Jul 2026 11:38:18 +0100 Subject: [PATCH 1/2] Dynamic data attribute for self hosted video, remove wrapper Co-Authored-By: Pip <47357469+pippinpen@users.noreply.github.com> Co-Authored-By: Alessia Amitrano --- .../src/components/SelfHostedVideo.island.tsx | 9 ++- .../components/SelfHostedVideoInArticle.tsx | 69 ++++++++----------- 2 files changed, 36 insertions(+), 42 deletions(-) diff --git a/dotcom-rendering/src/components/SelfHostedVideo.island.tsx b/dotcom-rendering/src/components/SelfHostedVideo.island.tsx index 615a6c94c7a..249148739b1 100644 --- a/dotcom-rendering/src/components/SelfHostedVideo.island.tsx +++ b/dotcom-rendering/src/components/SelfHostedVideo.island.tsx @@ -1071,13 +1071,18 @@ export const SelfHostedVideo = ({ } } + const videoStyleFormat = videoStyle.toLocaleLowerCase(); + return (
- - - -
+ + + ); }; From 15fb6de9460b135526c2d00a914380f68eb40689 Mon Sep 17 00:00:00 2001 From: Frederick O'Brien Date: Fri, 3 Jul 2026 12:28:29 +0100 Subject: [PATCH 2/2] Only apply bottom padding in articles --- .../src/components/SelfHostedVideo.island.tsx | 12 +++++++++--- .../src/components/SelfHostedVideoInArticle.tsx | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/dotcom-rendering/src/components/SelfHostedVideo.island.tsx b/dotcom-rendering/src/components/SelfHostedVideo.island.tsx index 249148739b1..3ca38897ea0 100644 --- a/dotcom-rendering/src/components/SelfHostedVideo.island.tsx +++ b/dotcom-rendering/src/components/SelfHostedVideo.island.tsx @@ -319,6 +319,7 @@ type Props = { isExternalLink: boolean; }; isInLoopClickTestVariant?: boolean; + isInArticle?: boolean; }; export const SelfHostedVideo = ({ @@ -351,6 +352,7 @@ export const SelfHostedVideo = ({ restrictHeightOnDesktop = false, cardLink, isInLoopClickTestVariant, + isInArticle = false, }: Props) => { const adapted = useShouldAdapt(); const { renderingTarget } = useConfig(); @@ -1075,9 +1077,13 @@ export const SelfHostedVideo = ({ return (
);