Skip to content

Commit

Permalink
Improve accessibility by adding alternative text for screen-readers. (e…
Browse files Browse the repository at this point in the history
…lastic#11548)

* Ensure img elements have alt text where necessary (none do).
- Add aria-hidden to global nav icon.

* Remove unused title attribute from SavedObjectFinder.
  • Loading branch information
cjcenizal authored and snide committed May 30, 2017
1 parent 4399213 commit a8b99d3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

<div class="list-group-item list-group-item--noBorder" ng-switch-when="visualization">
<saved-object-finder
title="Choose a visualization"
use-local-management="true"
type="visualizations"
on-add-new="opts.addNewVis"
Expand All @@ -34,6 +33,10 @@
</div>

<div class="list-group-item list-group-item--noBorder" ng-switch-when="search">
<saved-object-finder title="Choose a search" type="searches" use-local-management="true" on-choose="opts.addSearch"></saved-object-finder>
<saved-object-finder
type="searches"
use-local-management="true"
on-choose="opts.addSearch"
></saved-object-finder>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ <h2 class="kuiTitle kuiVerticalRhythm">

<!-- Saved searches -->
<saved-object-finder
title="Saved Searches"
type="searches"
class="wizard-row visualizeWizardSavedObjectFinder kuiVerticalRhythm"
make-url="step2WithSearchUrl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
data-test-subj="appLink"
>
<div class="global-nav-link__icon">
<!-- Empty alt attribute is for accessibility -->
<img
ng-if="icon"
class="global-nav-link__icon-image"
kbn-src="{{ '/' + icon }}"
alt=""
aria-hidden
>

<span
Expand Down
1 change: 0 additions & 1 deletion src/ui/public/directives/saved_object_finder.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module.directive('savedObjectFinder', function ($location, $injector, kbnUrl, Pr
restrict: 'E',
scope: {
type: '@',
title: '@?',
// optional make-url attr, sets the userMakeUrl in our scope
userMakeUrl: '=?makeUrl',
// optional on-choose attr, sets the userOnChoose in our scope
Expand Down

0 comments on commit a8b99d3

Please sign in to comment.