@@ -52,6 +52,7 @@ type BaseProps = {
5252 pageId ?: string ;
5353 inHoldbackGroup ?: boolean ;
5454 inAuxiaVariant ?: boolean ;
55+ inNoShowMobileAboveNavVariant ?: boolean ;
5556} ;
5657
5758type BuildPayloadProps = BaseProps & {
@@ -76,6 +77,19 @@ export type CanShowFunctionType<T> = (
7677 props : CanShowProps ,
7778) => Promise < CanShowResult < T > > ;
7879
80+ // the test includes the crossword pages (tag type/crossword) and the crosswords front (pageId === 'crosswords')
81+ const isInMobileAboveNavTest = (
82+ tags : TagType [ ] ,
83+ renderingTarget : RenderingTarget ,
84+ pageId ?: string ,
85+ ) : boolean => {
86+ return (
87+ ( tags . some ( ( tag ) => tag . id === 'type/crossword' ) ||
88+ pageId === 'crosswords' ) &&
89+ renderingTarget === 'Web'
90+ ) ;
91+ } ;
92+
7993const getArticleCountToday = (
8094 articleCounts : ArticleCounts | undefined ,
8195) : number | undefined => {
@@ -209,7 +223,15 @@ export const canShowRRBanner: CanShowFunctionType<
209223 pageId,
210224 inHoldbackGroup,
211225 inAuxiaVariant,
226+ inNoShowMobileAboveNavVariant,
212227} ) => {
228+ if (
229+ inNoShowMobileAboveNavVariant === true &&
230+ isInMobileAboveNavTest ( tags , renderingTarget , pageId )
231+ ) {
232+ return { show : false } ;
233+ }
234+
213235 if ( ! remoteBannerConfig ) {
214236 return { show : false } ;
215237 }
0 commit comments