File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -236,23 +236,11 @@ export const CardHeadline = ({
236236 kickerColour = palette ( '--card-kicker-text' ) ,
237237 quoteColour = palette ( '--card-quote-icon' ) ,
238238 kickerImage,
239- showLabsRedesign = true ,
239+ showLabsRedesign,
240240} : Props ) => {
241241 // The link is only applied directly to the headline if it is a sublink
242242 const isSublink = ! ! linkTo ;
243- const fontStyles = getFonts ( format , fontSizes , showLabsRedesign ) ;
244- console . log ( 'TEST DCR LOCAL' ) ;
245- if ( showLabsRedesign && format . theme === ArticleSpecial . Labs ) {
246- console . log ( `showLabsRedesign ${ showLabsRedesign } ` ) ;
247- // New Labs styling
248- }
249- if ( showLabsRedesign ) {
250- console . log ( `showLabsRedesign2 ${ showLabsRedesign } ` ) ;
251- // New Labs styling
252- }
253- console . log ( 'CardHeadline render count:' , Math . random ( ) ) ; // Unique identifier per render
254- console . log ( 'Format theme:' , format . theme ) ;
255- console . log ( 'showLabsRedesign:' , showLabsRedesign ) ;
243+ const fontStyles = getFonts ( format , fontSizes , showLabsRedesign ?? false ) ;
256244
257245 return (
258246 < WithLink linkTo = { linkTo } >
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ const meta = {
157157 imageLoading : 'eager' ,
158158 aspectRatio : '5:4' ,
159159 collectionId : 1 ,
160+ showLabsRedesign : true ,
160161 } ,
161162 render : ( { frontSectionTitle, ...args } ) => (
162163 < FrontSection
You can’t perform that action at this time.
0 commit comments