Skip to content

Commit d740ec3

Browse files
[ML] Accessibility fix for structural markup on table rows (#55075)
* [ML] Accessibility fix for structural markup on table rows * [ML] Fix type error on Transforms table cell for scope property
1 parent 102bd2b commit d740ec3

File tree

14 files changed

+16
-0
lines changed

14 files changed

+16
-0
lines changed

x-pack/legacy/plugins/ml/public/application/components/annotations/annotations_table/__snapshots__/annotations_table.test.js.snap

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/legacy/plugins/ml/public/application/components/annotations/annotations_table/annotations_table.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ const AnnotationsTable = injectI18n(
323323
}),
324324
sortable: true,
325325
width: '50%',
326+
scope: 'row',
326327
},
327328
{
328329
field: 'timestamp',

x-pack/legacy/plugins/ml/public/application/components/anomalies_table/anomalies_table_columns.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export function getColumns(
101101
defaultMessage: 'time',
102102
}),
103103
dataType: 'date',
104+
scope: 'row',
104105
render: date => renderTime(date, interval),
105106
textOnly: true,
106107
sortable: true,

x-pack/legacy/plugins/ml/public/application/components/ml_in_memory_table/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export interface FieldDataColumnType<T> {
2828
render?: RenderFunc;
2929
footer?: string | ReactElement | FooterFunc;
3030
textOnly?: boolean;
31+
scope?: 'col' | 'row' | 'colgroup' | 'rowgroup';
3132
'data-test-subj'?: string;
3233
}
3334

x-pack/legacy/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/columns.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ export const getColumns = (
182182
sortable: true,
183183
truncateText: true,
184184
'data-test-subj': 'mlAnalyticsTableColumnId',
185+
scope: 'row',
185186
},
186187
{
187188
field: DataFrameAnalyticsListColumn.description,

x-pack/legacy/plugins/ml/public/application/jobs/jobs_list/components/job_details/forecasts_table/forecasts_table.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ class ForecastsTableUI extends Component {
204204
render: date => formatDate(date, TIME_FORMAT),
205205
textOnly: true,
206206
sortable: true,
207+
scope: 'row',
207208
},
208209
{
209210
field: 'forecast_start_timestamp',

x-pack/legacy/plugins/ml/public/application/jobs/jobs_list/components/jobs_list/jobs_list.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ class JobsListUI extends Component {
172172
sortable: true,
173173
truncateText: false,
174174
width: '20%',
175+
scope: 'row',
175176
render: isManagementTable ? id => this.getJobIdLink(id) : undefined,
176177
},
177178
{

x-pack/legacy/plugins/ml/public/application/settings/calendars/edit/events_table/__snapshots__/events_table.test.js.snap

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/legacy/plugins/ml/public/application/settings/calendars/edit/events_table/events_table.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const EventsTable = injectI18n(function EventsTable({
6363
}),
6464
sortable: true,
6565
truncateText: true,
66+
scope: 'row',
6667
},
6768
{
6869
field: 'start_time',

x-pack/legacy/plugins/ml/public/application/settings/calendars/list/table/__snapshots__/table.test.js.snap

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)