Skip to content

Commit

Permalink
Improve Console screen-reader accessibility: (elastic#11602)
Browse files Browse the repository at this point in the history
- Add aria-label for Console History entries.
- Add aria-label and aria-labelledby to Console Request 'wrench' menu.
  • Loading branch information
cjcenizal authored and snide committed May 30, 2017
1 parent 9373141 commit 4399213
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
15 changes: 12 additions & 3 deletions src/core_plugins/console/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,20 @@
</a>
</kbn-tooltip>
<span dropdown>
<a class="editor_action" dropdown-toggle href="#">
<i class="fa fa-wrench"></i>
<a
id="consoleRequestOptions"
class="editor_action"
dropdown-toggle href="#"
aria-label="Request options"
>
<span class="kuiIcon fa-wrench"></span>
</a>

<ul class="dropdown-menu" role="menu" aria-labelledby="split-button">
<ul
class="dropdown-menu"
role="menu"
aria-labelledby="consoleRequestOptions"
>
<li role="menuitem">
<a class="link" id="copy_as_curl">Copy as cURL</a>
</li>
Expand Down
5 changes: 3 additions & 2 deletions src/core_plugins/console/public/src/directives/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
ng-mouseenter="history.viewingReq = req"
ng-mouseleave="history.viewingReq = history.selectedReq"
ng-dblclick="history.restore(req)"
title="{{ req.description }}"
aria-label="{{:: 'Request: ' + history.describeReq(req) }}"
class="list-group-item history-req"
>
{{ history.describeReq(req) }}
Expand All @@ -25,7 +25,8 @@
<button
class="kuiButton kuiButton--primary"
ng-disabled="!history.selectedReq"
ng-click="history.restore()">
ng-click="history.restore()"
>
Apply
</button>
</div>

0 comments on commit 4399213

Please sign in to comment.