From bdcbdc9433d85c0b3f7be96938dac2f2e5d1ee98 Mon Sep 17 00:00:00 2001 From: Tim Roes Date: Wed, 12 Jul 2017 08:32:58 -0700 Subject: [PATCH] Fix several a11y issues in the discover app (#12681) * Fix minor a11y issues in field filter aria-expanded is a true/false/undefined state so we need to make sure even if showFilter is undefined, we will print false (that's why the double negation) aria-haspopup doesn't really fit, since this is not a popup in the sense the ARIA standard describes ("A popup is generally presented visually as a group of items that appears to be on top of the main page content.") Add aria-controls to reference the controlled element. Fix #12638 and toggle label when filter toggles * Add labels to magnifiers in field filter (Fix #12635) * Add search role for discover search (Fix #12642) * Describe the search input with the lucene query syntax link * Make collapsible-sidebar a11y (Fix #12636) * Fix id to use camel-case --- .../discover/components/field_chooser/field_chooser.html | 8 ++++---- .../components/field_chooser/lib/detail_views/string.html | 2 ++ src/core_plugins/kibana/public/discover/index.html | 6 ++++-- src/ui/public/collapsible_sidebar/collapsible_sidebar.js | 8 ++++++++ 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/core_plugins/kibana/public/discover/components/field_chooser/field_chooser.html b/src/core_plugins/kibana/public/discover/components/field_chooser/field_chooser.html index 87336115c7795..f4d24cf3d2f4e 100644 --- a/src/core_plugins/kibana/public/discover/components/field_chooser/field_chooser.html +++ b/src/core_plugins/kibana/public/discover/components/field_chooser/field_chooser.html @@ -55,16 +55,16 @@ -