diff --git a/src/components/organisms/shared/OakMediaClip/OakMediaClip.stories.tsx b/src/components/organisms/shared/OakMediaClip/OakMediaClip.stories.tsx index 96a49fc2..0e009dbf 100644 --- a/src/components/organisms/shared/OakMediaClip/OakMediaClip.stories.tsx +++ b/src/components/organisms/shared/OakMediaClip/OakMediaClip.stories.tsx @@ -108,14 +108,16 @@ export const Default: Story = { export const Playing: Story = { render: (args) => { return ( - { - console.log(`Playing video`); - }} - /> + + { + console.log(`Playing video`); + }} + /> + ); }, }; @@ -123,14 +125,16 @@ export const Playing: Story = { export const Played: Story = { render: (args) => { return ( - { - console.log(`Played video`); - }} - /> + + { + console.log(`Played video`); + }} + /> + ); }, }; @@ -138,14 +142,16 @@ export const Played: Story = { export const Audio: Story = { render: (args) => { return ( - { - console.log(`Audio clip`); - }} - /> + + { + console.log(`Audio clip`); + }} + /> + ); }, }; @@ -153,13 +159,15 @@ export const Audio: Story = { export const Disabled: Story = { render: (args) => { return ( - { - console.log(`Disabled video`); - }} - /> + + { + console.log(`Disabled video`); + }} + /> + ); }, }; diff --git a/src/components/organisms/shared/OakMediaClipStackListItem/OakMediaClipStackListItem.tsx b/src/components/organisms/shared/OakMediaClipStackListItem/OakMediaClipStackListItem.tsx index 0d10a7cc..c28c3838 100644 --- a/src/components/organisms/shared/OakMediaClipStackListItem/OakMediaClipStackListItem.tsx +++ b/src/components/organisms/shared/OakMediaClipStackListItem/OakMediaClipStackListItem.tsx @@ -9,18 +9,18 @@ import { OakHeading, OakIcon, oakPlaceholder, - placeholderStyles, } from "@/components/atoms"; import { parseBorderRadius } from "@/styles/helpers/parseBorderRadius"; import { parseColor } from "@/styles/helpers/parseColor"; import { parseDropShadow } from "@/styles/helpers/parseDropShadow"; import { parseTransitions } from "@/styles/helpers/parseTransitions"; import { getMediaQuery } from "@/styles/utils/responsiveStyle"; +import { parseSpacing } from "@/styles/helpers/parseSpacing"; export type OakMediaClipStackListItemProps = { title: string; href: string; - imageUrl: string; + imageUrl?: string; imageAltText: string; numberOfClips: number; }; @@ -90,8 +90,11 @@ const ImageStackShadow = styled(OakBox)` } `; -const StyledMediaStackImage = styled(OakImage)` - ${placeholderStyles} +const StyledMediaClipImage = styled(OakImage)` + background-color: ${parseColor("bg-decorative2-very-subdued")}; + background-size: ${parseSpacing("all-spacing-11")}; + background-position: center; + background-repeat: no-repeat; height: 100%; width: 100%; `; @@ -119,9 +122,8 @@ export const OakMediaClipStackListItem = ( $position={"relative"} $mb={["space-between-none", "space-between-none", "space-between-xs"]} > -