File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,6 +180,13 @@ export function Header({
180180 const isCategoriesLayoutBar = categoriesLayout === 'bar' ;
181181 const isCategoriesLayoutDropdown = categoriesLayout === 'dropdown' || isMobile ;
182182 const numberOfPublicGalleries = newsroom . public_galleries_number ;
183+ const shouldShowSearchText =
184+ ! isMobile &&
185+ [
186+ isPreview || numberOfPublicGalleries > 0 ,
187+ mainSiteUrl ,
188+ isCategoriesLayoutDropdown && translatedCategories . length > 0 ,
189+ ] . filter ( Boolean ) . length < 2 ;
183190
184191 return (
185192 < >
@@ -217,7 +224,11 @@ export function Header({
217224 aria-expanded = { isSearchOpen }
218225 title = { formatMessage ( translations . search . title ) }
219226 aria-label = { formatMessage ( translations . search . title ) }
220- />
227+ >
228+ { shouldShowSearchText
229+ ? formatMessage ( translations . search . title )
230+ : undefined }
231+ </ ButtonLink >
221232 ) }
222233
223234 { shouldShowMenu && (
You can’t perform that action at this time.
0 commit comments