mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
# Backport This will backport the following commits from `main` to `8.17`: - [add a11y label to monitor script uploader (#225518)](https://github.com/elastic/kibana/pull/225518) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Bailey Cash","email":"bailey.cash@elastic.co"},"sourceCommit":{"committedDate":"2025-06-26T20:19:41Z","message":"add a11y label to monitor script uploader (#225518)\n\n## Summary\n\nCloses #212467\n\n\n\n","sha":"1c76710f67334c3f76414062fcfe12a2b5f66ec9","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0","v8.18.4","v9.0.4","v8.17.9"],"title":"add a11y label to monitor script uploader","number":225518,"url":"https://github.com/elastic/kibana/pull/225518","mergeCommit":{"message":"add a11y label to monitor script uploader (#225518)\n\n## Summary\n\nCloses #212467\n\n\n\n","sha":"1c76710f67334c3f76414062fcfe12a2b5f66ec9"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.2","8.18","9.0","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225518","number":225518,"mergeCommit":{"message":"add a11y label to monitor script uploader (#225518)\n\n## Summary\n\nCloses #212467\n\n\n\n","sha":"1c76710f67334c3f76414062fcfe12a2b5f66ec9"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Bailey Cash <bailey.cash@elastic.co>
This commit is contained in:
parent
acd15b2a6d
commit
375b4f4762
1 changed files with 7 additions and 7 deletions
|
@ -53,14 +53,10 @@ export function Uploader({ onUpload }: Props) {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<EuiFormRow
|
<EuiFormRow isInvalid={Boolean(error)} error={error} aria-label={FORM_ROW_LABEL} fullWidth>
|
||||||
isInvalid={Boolean(error)}
|
|
||||||
error={error}
|
|
||||||
aria-label={TESTING_SCRIPT_LABEL}
|
|
||||||
fullWidth
|
|
||||||
>
|
|
||||||
<EuiFilePicker
|
<EuiFilePicker
|
||||||
id="syntheticsFleetScriptRecorderUploader"
|
id="syntheticsFleetScriptRecorderUploader"
|
||||||
|
aria-label={TESTING_SCRIPT_LABEL}
|
||||||
data-test-subj="syntheticsFleetScriptRecorderUploader"
|
data-test-subj="syntheticsFleetScriptRecorderUploader"
|
||||||
ref={filePickerRef as React.Ref<Omit<EuiFilePickerProps, 'stylesMemoizer'>>}
|
ref={filePickerRef as React.Ref<Omit<EuiFilePickerProps, 'stylesMemoizer'>>}
|
||||||
initialPromptText={PROMPT_TEXT}
|
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',
|
'xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.uploader.fieldLabel',
|
||||||
{
|
{
|
||||||
defaultMessage: 'Testing script',
|
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', {
|
const PROMPT_TEXT = i18n.translate('xpack.synthetics.monitorConfig.uploader.label', {
|
||||||
defaultMessage: 'Select or drag and drop a .js file',
|
defaultMessage: 'Select or drag and drop a .js file',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue