Skip to content

Commit

Permalink
Improve Management section accessibility (#14243)
Browse files Browse the repository at this point in the history
* Mark tabs in management as such

* Add regions to the management section

* Add warning as description to the filter input

* Make aria-label match placeholder

* Rename filter to search in advanced settings
  • Loading branch information
timroes committed Oct 6, 2017
1 parent 78b4727 commit 37b02f9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/core_plugins/kibana/public/management/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
></bread-crumbs>

<!-- Tabs. -->
<div data-transclude-slot="bottomRow" class="kuiLocalTabs">
<div data-transclude-slot="bottomRow" class="kuiLocalTabs" role="tablist">
<h2 class="kuiLocalTab" ng-if="!sectionName" id="tabHeader" tabindex="0">
{{::section.display}}
</h2>
<a
role="tab"
ng-if="sectionName"
ng-repeat="item in section.visibleItems"
class="kuiLocalTab"
Expand All @@ -28,6 +29,8 @@ <h2 class="kuiLocalTab" ng-if="!sectionName" id="tabHeader" tabindex="0">
tooltip-placement="bottom"
tooltip-popup-delay="400"
tooltip-append-to-body="1"
aria-selected="{{!!item.active}}"
aria-disabled="{{!!item.disabled}}"
>
{{::item.display}}
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
ng-controller="managementIndicesEdit"
data-test-subj="editIndexPattern"
class="kuiViewContent"
role="region"
aria-label="Index pattern details"
>
<!-- Header -->
<kbn-management-index-header
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="col-md-2 sidebar-container">
<div class="col-md-2 sidebar-container" role="region" aria-label="Index patterns">
<div class="sidebar-list">
<div class="sidebar-list-header">
<h5>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h1 class="kuiTitle">
class="kuiToolBarSearchBox__input"
type="text"
placeholder="Search..."
aria-label="Filter"
aria-label="Search"
ng-model="managementObjectsController.advancedFilter"
>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="kuiInfoPanel kuiInfoPanel--warning kuiVerticalRhythm">
<div class="kuiInfoPanelHeader">
<span class="kuiInfoPanelHeader__icon kuiIcon kuiIcon--warning fa-bolt"></span>
<span class="kuiInfoPanelHeader__title">
<span class="kuiInfoPanelHeader__title" id="kbnManagementAdvancedWarning">
Caution: You can break stuff here
</span>
</div>
Expand All @@ -30,10 +30,11 @@
<div class="kuiSearchInput__icon kuiIcon fa-search"></div>
<input
class="kuiSearchInput__input"
aria-label="Filter"
aria-label="Search"
ng-model="advancedFilter"
type="text"
placeholder="Filter..."
placeholder="Search..."
aria-describedby="kbnManagementAdvancedWarning"
>
</div>
</form>
Expand Down

0 comments on commit 37b02f9

Please sign in to comment.