@@ -93,6 +93,10 @@ type Props = {
9393 hasNavigationButtons ?: boolean ;
9494 isAboveDesktopAd ?: boolean ;
9595 isAboveMobileAd ?: boolean ;
96+ /** Indicates whether this is a Guardian Labs container */
97+ isLabs ?: boolean ;
98+ /** Feature switch for the labs redesign work */
99+ showLabsRedesign ?: boolean ;
96100} ;
97101
98102const width = ( columns : number , columnWidth : number , columnGap : number ) =>
@@ -592,6 +596,8 @@ export const FrontSection = ({
592596 hasNavigationButtons = false ,
593597 isAboveDesktopAd = false ,
594598 isAboveMobileAd = false ,
599+ isLabs = false ,
600+ showLabsRedesign = false ,
595601} : Props ) => {
596602 const isToggleable = toggleable && ! ! sectionId ;
597603 const showVerticalRule = ! hasPageSkin ;
@@ -677,33 +683,41 @@ export const FrontSection = ({
677683 ) ,
678684 ] }
679685 >
680- < FrontSectionTitle
681- title = {
682- < ContainerTitle
683- title = { title }
684- lightweightHeader = { isTagPage }
685- description = { description }
686- fontColour = {
687- containerLevel === 'Secondary'
688- ? schemePalette (
689- '--article-section-secondary-title' ,
690- )
691- : articleSectionTitleStyles (
692- title ,
693- showSectionColours ,
694- )
686+ { ! isLabs && ! showLabsRedesign && (
687+ < >
688+ < FrontSectionTitle
689+ title = {
690+ < ContainerTitle
691+ title = { title }
692+ lightweightHeader = { isTagPage }
693+ description = { description }
694+ fontColour = {
695+ containerLevel === 'Secondary'
696+ ? schemePalette (
697+ '--article-section-secondary-title' ,
698+ )
699+ : articleSectionTitleStyles (
700+ title ,
701+ showSectionColours ,
702+ )
703+ }
704+ // On paid fronts the title is not treated as a link
705+ url = {
706+ ! isOnPaidContentFront
707+ ? url
708+ : undefined
709+ }
710+ showDateHeader = { showDateHeader }
711+ editionId = { editionId }
712+ containerLevel = { containerLevel }
713+ />
695714 }
696- // On paid fronts the title is not treated as a link
697- url = { ! isOnPaidContentFront ? url : undefined }
698- showDateHeader = { showDateHeader }
699- editionId = { editionId }
700- containerLevel = { containerLevel }
715+ collectionBranding = { collectionBranding }
701716 />
702- }
703- collectionBranding = { collectionBranding }
704- />
705717
706- { leftContent }
718+ { leftContent }
719+ </ >
720+ ) }
707721 </ div >
708722
709723 { ( isToggleable || hasNavigationButtons ) && (
0 commit comments