From 70cbb68bc1f4d68b074729eeba95231657d2e207 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 13 Nov 2024 08:18:21 +1100 Subject: [PATCH] [8.x] fix: [Search:SearchApplications:Connect page]Missing modal dialog title from announcement (#199738) (#199870) # Backport This will backport the following commits from `main` to `8.x`: - [fix: [Search:SearchApplications:Connect page]Missing modal dialog title from announcement (#199738)](https://github.com/elastic/kibana/pull/199738) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Alexey Antonov --- .../generate_search_application_api_key_modal.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/applications/components/search_application/connect/generate_api_key_modal/generate_search_application_api_key_modal.tsx b/x-pack/plugins/enterprise_search/public/applications/applications/components/search_application/connect/generate_api_key_modal/generate_search_application_api_key_modal.tsx index 806b37d809186..33abcbde10fc9 100644 --- a/x-pack/plugins/enterprise_search/public/applications/applications/components/search_application/connect/generate_api_key_modal/generate_search_application_api_key_modal.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/applications/components/search_application/connect/generate_api_key_modal/generate_search_application_api_key_modal.tsx @@ -27,6 +27,7 @@ import { EuiSpacer, EuiFormLabel, EuiCodeBlock, + useGeneratedHtmlId, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; @@ -45,6 +46,7 @@ export const GenerateSearchApplicationApiKeyModal: React.FC< > = ({ onClose, searchApplicationName }) => { const { keyName, apiKey, isLoading, isSuccess } = useValues(GenerateApiKeyModalLogic); const { setKeyName } = useActions(GenerateApiKeyModalLogic); + const modalTitleId = useGeneratedHtmlId(); const { makeRequest } = useActions(GenerateSearchApplicationApiKeyLogic); useEffect(() => { @@ -52,9 +54,9 @@ export const GenerateSearchApplicationApiKeyModal: React.FC< }, [searchApplicationName]); return ( - + - + {i18n.translate( 'xpack.enterpriseSearch.searchApplication.searchApplication.api.generateApiKeyModal.title', {