Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused title attribute from saved-object-finder. #11548

Merged

Conversation

cjcenizal
Copy link
Contributor

Addresses #11520.

@cjcenizal cjcenizal added the Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. label May 1, 2017
@cjcenizal cjcenizal force-pushed the 11520/improvement/accessibility-alt-text branch from c91abee to 9650afe Compare May 1, 2017 18:29
@cjcenizal cjcenizal changed the title [WIP] Improve accessibility by adding alternative text for screen-readers. Improve accessibility by adding alternative text for screen-readers. May 3, 2017
@cjcenizal
Copy link
Contributor Author

jenkins, test this

@cjcenizal cjcenizal force-pushed the 11520/improvement/accessibility-alt-text branch from 732aee8 to 4bafa03 Compare May 4, 2017 00:38
@@ -28,6 +27,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"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the title attribute isn't used, so I removed it.

<img
ng-if="icon"
class="global-nav-link__icon-image"
kbn-src="{{ '/' + icon }}"
alt=""
aria-hidden
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This image means nothing to screen readers, so we hide it.

Copy link
Contributor

@kobelb kobelb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cjcenizal cjcenizal merged commit c1b714e into elastic:master May 11, 2017
@cjcenizal cjcenizal deleted the 11520/improvement/accessibility-alt-text branch May 11, 2017 19:46
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request May 11, 2017
…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.
cjcenizal added a commit that referenced this pull request May 11, 2017
…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.
@cjcenizal cjcenizal changed the title Improve accessibility by adding alternative text for screen-readers. Remove unused title attribute from saved-object-finder. May 19, 2017
snide pushed a commit to snide/kibana that referenced this pull request May 30, 2017
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. v5.5.0 v6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants