Skip to content

Commit

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

* 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 committed May 11, 2017
1 parent 7ab1569 commit a580dbb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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>
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
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
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 a580dbb

Please sign in to comment.