Fixed a11y issue on rollup jobs table selection (#84567) (#84880)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Yulia Čech 2020-12-03 14:06:54 +01:00 committed by GitHub
parent 0b8e7a026f
commit 7c4ec081f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -310,6 +310,10 @@ export class JobTable extends Component {
this.toggleItem(id);
}}
data-test-subj={`indexTableRowCheckbox-${id}`}
aria-label={i18n.translate('xpack.rollupJobs.jobTable.selectRow', {
defaultMessage: 'Select this row {id}',
values: { id },
})}
/>
</EuiTableRowCellCheckbox>
@ -380,6 +384,9 @@ export class JobTable extends Component {
checked={this.areAllItemsSelected()}
onChange={this.toggleAll}
type="inList"
aria-label={i18n.translate('xpack.rollupJobs.jobTable.selectAllRows', {
defaultMessage: 'Select all rows',
})}
/>
</EuiTableHeaderCellCheckbox>
{this.buildHeader()}