From af7c0da3c59c0077a8b104435f6cbaa565ad0bec Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 26 Jun 2025 16:14:37 -0600 Subject: [PATCH] [8.18] add a11y label to monitor script uploader (#225518) (#225552) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Backport This will backport the following commits from `main` to `8.18`: - [add a11y label to monitor script uploader (#225518)](https://github.com/elastic/kibana/pull/225518) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) Co-authored-by: Bailey Cash --- .../monitor_add_edit/fields/uploader.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/uploader.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/uploader.tsx index 9e9a4803a579..3d5b783828b9 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/uploader.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/fields/uploader.tsx @@ -53,14 +53,10 @@ export function Uploader({ onUpload }: Props) { }; return ( - + >} initialPromptText={PROMPT_TEXT} @@ -72,13 +68,17 @@ export function Uploader({ onUpload }: Props) { ); } -const TESTING_SCRIPT_LABEL = i18n.translate( +const FORM_ROW_LABEL = i18n.translate( 'xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.uploader.fieldLabel', { defaultMessage: 'Testing script', } ); +const TESTING_SCRIPT_LABEL = i18n.translate('xpack.synthetics.monitorEdit.uploader.ariaLabel', { + defaultMessage: 'Input for uploading a script file for your monitor', +}); + const PROMPT_TEXT = i18n.translate('xpack.synthetics.monitorConfig.uploader.label', { defaultMessage: 'Select or drag and drop a .js file', });