From 6542dc194af61b89f97e24e974daa37476449ecb Mon Sep 17 00:00:00 2001 From: Andrew Tate Date: Mon, 11 Apr 2022 07:08:21 -0500 Subject: [PATCH] [Discover] Better a11y for page header (#129789) --- .../main/components/layout/discover_layout.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx b/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx index f8ea65a58b3a9..b6ee4133f1f75 100644 --- a/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx +++ b/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx @@ -234,7 +234,16 @@ export function DiscoverLayout({ history={history} />

- {savedSearch.title} + {savedSearch.title + ? i18n.translate('discover.pageTitleWithSavedSearch', { + defaultMessage: 'Discover - {savedSearchTitle}', + values: { + savedSearchTitle: savedSearch.title, + }, + }) + : i18n.translate('discover.pageTitleWithoutSavedSearch', { + defaultMessage: 'Discover - Search not yet saved', + })}