Skip to content

Commit 47609e7

Browse files
committed
Fix issues after rebasing
1 parent c266404 commit 47609e7

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

dotcom-rendering/src/components/Caption.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ type Props = {
3535

3636
type IconProps = {
3737
format: ArticleFormat;
38-
isMainMedia: boolean;
3938
};
4039

4140
const captionStyle = (isMainMedia: boolean) => css`
@@ -170,10 +169,8 @@ const hideIconBelowLeftCol = css`
170169
const pictureRatio = (13 / 18) * 100;
171170
const videoRatio = (23 / 36) * 100;
172171

173-
const iconStyle = (format: ArticleFormat, isMainMedia: boolean) => css`
174-
fill: ${format.design === ArticleDesign.Gallery && isMainMedia
175-
? palette('--caption-main-media-text')
176-
: palette('--caption-text')};
172+
const iconStyle = css`
173+
fill: ${palette('--caption-text')};
177174
margin-right: ${space[1]}px;
178175
display: inline-block;
179176
position: relative;
@@ -265,11 +262,11 @@ const CameraIcon = ({ format }: IconProps) => {
265262
);
266263
};
267264

268-
const VideoIcon = ({ format, isMainMedia }: IconProps) => {
265+
const VideoIcon = ({ format }: IconProps) => {
269266
return (
270267
<span
271268
css={[
272-
iconStyle(format, isMainMedia),
269+
iconStyle,
273270
format.display === ArticleDisplay.Immersive &&
274271
hideIconBelowLeftCol,
275272
videoIconStyle,

0 commit comments

Comments
 (0)