File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ type Props = {
3535
3636type IconProps = {
3737 format : ArticleFormat ;
38- isMainMedia : boolean ;
3938} ;
4039
4140const captionStyle = ( isMainMedia : boolean ) => css `
@@ -170,10 +169,8 @@ const hideIconBelowLeftCol = css`
170169const pictureRatio = ( 13 / 18 ) * 100 ;
171170const 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 dis play: 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 ,
You can’t perform that action at this time.
0 commit comments