From 660775ca6328fa8ad97a5f2a0e8de849069b43a7 Mon Sep 17 00:00:00 2001 From: Pete Harverson Date: Tue, 14 Aug 2018 15:41:30 +0100 Subject: [PATCH] [ML] Add aria-label to calendar and jobs list buttons (#21922) (#21959) * [ML] Add aria-label to calendar and jobs list buttons * [ML] Simplify building of Jobs List expanded row icon aria-label --- .../public/jobs/jobs_list/components/job_actions/results.js | 4 ++-- .../public/jobs/jobs_list/components/jobs_list/jobs_list.js | 2 +- .../scheduled_events/calendars_list/calendars_list.html | 4 ++-- .../scheduled_events/components/events_list/events_list.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/x-pack/plugins/ml/public/jobs/jobs_list/components/job_actions/results.js b/x-pack/plugins/ml/public/jobs/jobs_list/components/job_actions/results.js index b829d8b58ad3..fe81291165ba 100644 --- a/x-pack/plugins/ml/public/jobs/jobs_list/components/job_actions/results.js +++ b/x-pack/plugins/ml/public/jobs/jobs_list/components/job_actions/results.js @@ -47,7 +47,7 @@ export function ResultLinks({ jobs }) { @@ -60,7 +60,7 @@ export function ResultLinks({ jobs }) { diff --git a/x-pack/plugins/ml/public/jobs/jobs_list/components/jobs_list/jobs_list.js b/x-pack/plugins/ml/public/jobs/jobs_list/components/jobs_list/jobs_list.js index 5ea214ca51fb..9898cfb0c751 100644 --- a/x-pack/plugins/ml/public/jobs/jobs_list/components/jobs_list/jobs_list.js +++ b/x-pack/plugins/ml/public/jobs/jobs_list/components/jobs_list/jobs_list.js @@ -109,7 +109,7 @@ export class JobsList extends Component { this.toggleRow(item)} iconType={this.state.itemIdToExpandedRowMap[item.id] ? 'arrowDown' : 'arrowRight'} - aria-label={this.state.itemIdToExpandedRowMap[item.id] ? 'Hide details' : 'Show details'} + aria-label={`${this.state.itemIdToExpandedRowMap[item.id] ? 'Hide' : 'Show'} details for ${item.id}`} data-row-id={item.id} /> ) diff --git a/x-pack/plugins/ml/public/settings/scheduled_events/calendars_list/calendars_list.html b/x-pack/plugins/ml/public/settings/scheduled_events/calendars_list/calendars_list.html index 1888d9667548..fb678a1a6aac 100644 --- a/x-pack/plugins/ml/public/settings/scheduled_events/calendars_list/calendars_list.html +++ b/x-pack/plugins/ml/public/settings/scheduled_events/calendars_list/calendars_list.html @@ -102,7 +102,7 @@ ng-attr-tooltip="{{buttonChecks.newButtonWrapperTooltip()}}">