From 699080d9acf618d25c667dceef7aa891190dc987 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Mon, 16 Jun 2025 23:23:07 +0200 Subject: [PATCH] [7.17] [a11y][ml] Add visually hidden label for screenreader for select checkboxes in anomaly detection job selection flyout (#224025) (#224119) # Backport This will backport the following commits from `main` to `7.17`: - [[a11y][ml] Add visually hidden label for screenreader for select checkboxes in anomaly detection job selection flyout (#224025)](https://github.com/elastic/kibana/pull/224025) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) Co-authored-by: Paulina Shakirova --- .../custom_selection_table.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/ml/public/application/components/custom_selection_table/custom_selection_table.js b/x-pack/plugins/ml/public/application/components/custom_selection_table/custom_selection_table.js index d52d22f6b4aa..23cdfbcdfb2b 100644 --- a/x-pack/plugins/ml/public/application/components/custom_selection_table/custom_selection_table.js +++ b/x-pack/plugins/ml/public/application/components/custom_selection_table/custom_selection_table.js @@ -192,6 +192,7 @@ export function CustomSelectionTable({ toggleItem(item[tableItemId])} type="inList" @@ -288,6 +293,13 @@ export function CustomSelectionTable({ id={item[tableItemId]} data-test-subj={`${item[tableItemId]}-radio-button`} checked={isItemSelected(item[tableItemId])} + aria-label={i18n.translate( + 'xpack.ml.jobSelector.customTable.singleSelectionRadioButtonAriaLabel', + { + defaultMessage: 'Select job {itemId}', + values: { itemId: item[tableItemId] }, + } + )} onChange={() => toggleItem(item[tableItemId])} disabled={radioDisabledCheck !== undefined ? radioDisabledCheck(item) : undefined} /> @@ -368,7 +380,7 @@ export function CustomSelectionTable({ fullWidth isInvalid={error !== null} error={getError(error)} - style={{ maxHeight: '0px' }} + css={{ maxHeight: '0px' }} >