From 719eaab436ed2f25212d91f5d93f3795ef264af4 Mon Sep 17 00:00:00 2001 From: Marcel Gerber Date: Mon, 15 Apr 2024 14:53:18 +0200 Subject: [PATCH] enhance(search): feature country-searching in search placeholder --- site/gdocs/components/centered-article.scss | 4 ++++ site/search/searchClient.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/site/gdocs/components/centered-article.scss b/site/gdocs/components/centered-article.scss index e2e4daf8ab3..eeeb97b8223 100644 --- a/site/gdocs/components/centered-article.scss +++ b/site/gdocs/components/centered-article.scss @@ -1124,6 +1124,10 @@ div.raw-html-table__container { &::placeholder { color: $blue-40; } + + &:placeholder-shown { + text-overflow: ellipsis; + } } .aa-InputWrapperPrefix { diff --git a/site/search/searchClient.ts b/site/search/searchClient.ts index 6859b2e7109..b9f8483ade8 100644 --- a/site/search/searchClient.ts +++ b/site/search/searchClient.ts @@ -52,4 +52,4 @@ export const logSiteSearchClickToAlgoliaInsights = ( } export const DEFAULT_SEARCH_PLACEHOLDER = - "Try “Life expectancy”, “Economic Growth”, “Homicide rate”, “Biodiversity”…" + "Try “Life expectancy”, “Economic Growth China Japan”, “CO2 Poland France”…"