File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ const sectionContentBorderFromLeftCol = css`
398398 botto m: 0;
399399 bor der- left: 1px solid ${ schemePalette ( '--section-border' ) } ;
400400 transfor m: translateX(-50%);
401- /** Keeps the vertical divider ontop of carousel item dividers */
401+ /** Keeps the vertical divider on top of carousel item dividers */
402402 z- index: 1;
403403 }
404404 }
@@ -414,7 +414,7 @@ const slimHomepageRightBorderStyles = css`
414414 right: 0;
415415 bor der- right: 1px solid ${ schemePalette ( '--section-border' ) } ;
416416 transfor m: translateX(-50%);
417- /** Keeps the vertical divider ontop of carousel item dividers */
417+ /** Keeps the vertical divider on top of carousel item dividers */
418418 z- index: 1;
419419 }
420420 }
Original file line number Diff line number Diff line change @@ -78,13 +78,25 @@ const isToggleable = (
7878 index : number ,
7979 collection : DCRCollectionType ,
8080 isNetworkFront : boolean ,
81+ isInSlimHomepageAbTestVariant : boolean ,
8182) => {
8283 if ( isNetworkFront ) {
84+ /**
85+ * The show/hide button would be covered by the MostPopularFrontRight component
86+ * in the variant of the Slim Homepage AB test.
87+ */
88+ const hideForSlimHomepageAbTest =
89+ isInSlimHomepageAbTestVariant &&
90+ ( collection . displayName === 'News' ||
91+ collection . displayName === 'Features' ||
92+ collection . displayName === 'More features' ) ;
93+
8394 return (
8495 collection . displayName . toLowerCase ( ) !== 'headlines' &&
8596 ! isNavList ( collection ) &&
8697 ! isHighlights ( collection ) &&
87- ! isLabs ( collection )
98+ ! isLabs ( collection ) &&
99+ ! hideForSlimHomepageAbTest
88100 ) ;
89101 }
90102
@@ -487,6 +499,7 @@ export const FrontLayout = ({ front, NAV }: Props) => {
487499 index ,
488500 collection ,
489501 front . isNetworkFront ,
502+ isInSlimHomepageAbTestVariant ,
490503 ) }
491504 leftContent = { decideLeftContent (
492505 front ,
You can’t perform that action at this time.
0 commit comments