From de08f1727788f7f89838622f31989c271c002dda Mon Sep 17 00:00:00 2001 From: Justin Kambic Date: Thu, 18 Oct 2018 12:43:52 -0400 Subject: [PATCH] [Logstash] [Pipeline Viewer] Improve LS monitoring accessibility (#24169) * Update test data shape to conform to component proptypes. * Add aria-labels for pipeline viewer buttons. --- .../__snapshots__/collapsible_statement.test.js.snap | 2 +- .../__test__/__snapshots__/plugin_statement.test.js.snap | 5 +++++ .../views/__test__/__snapshots__/statement.test.js.snap | 3 +++ .../views/__test__/__snapshots__/statement_list.test.js.snap | 2 ++ .../pipeline_viewer/views/__test__/statement_list.test.js | 2 ++ .../logstash/pipeline_viewer/views/collapsible_statement.js | 2 +- .../logstash/pipeline_viewer/views/plugin_statement.js | 1 + .../components/logstash/pipeline_viewer/views/statement.js | 1 + 8 files changed, 16 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/views/__test__/__snapshots__/collapsible_statement.test.js.snap b/x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/views/__test__/__snapshots__/collapsible_statement.test.js.snap index 340a33b79c21ca..42d47156d087cd 100644 --- a/x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/views/__test__/__snapshots__/collapsible_statement.test.js.snap +++ b/x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/views/__test__/__snapshots__/collapsible_statement.test.js.snap @@ -17,7 +17,7 @@ exports[`CollapsibleStatement component renders child components 1`] = ` key="statementId" > 0 1`] = ` key="statementName" > { id: 'mutateIf', parentId: null, depth: 0, + statement: { }, }, { id: 'mutate', parentId: 'mutateIf', depth: 1, + statement: { }, }, ], onShowVertexDetails, diff --git a/x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/views/collapsible_statement.js b/x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/views/collapsible_statement.js index a7bec798da2826..77fd484d2be6ff 100644 --- a/x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/views/collapsible_statement.js +++ b/x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/views/collapsible_statement.js @@ -33,7 +33,7 @@ export function CollapsibleStatement(props) { >