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

Improve the accessibility of the Discover screen #12681

Merged
merged 6 commits into from
Jul 12, 2017

Conversation

timroes
Copy link
Contributor

@timroes timroes commented Jul 6, 2017

This PR fixes several issues of the discovery app. Fixes #12635, #12642, #12636, #12638

Besides I added some addition a11y (aria-expanded) to the collapsible side bar, add an aria-describedby from the search input to the "lucene query syntax link", add some aria-controls where needed.

timroes added 5 commits July 6, 2017 10:21
aria-expanded is a true/false/undefined state so we need to make sure
even if showFilter is undefined, we will print false (that's why the
double negation)

aria-haspopup doesn't really fit, since this is not a popup in the sense
the ARIA standard describes ("A popup is generally presented visually as
a group of items that appears to be on top of the main page content.")

Add aria-controls to reference the controlled element.

Fix elastic#12638 and toggle label when filter toggles
@timroes timroes added Project:Accessibility Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. :Discovery labels Jul 6, 2017
@timroes timroes requested review from cjcenizal, snide and Bargs July 6, 2017 12:45
@timroes timroes changed the title FIx several a11y issues in the discover app Fix several a11y issues in the discover app Jul 6, 2017
@timroes timroes removed the Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. label Jul 6, 2017
@cjcenizal cjcenizal requested a review from aphelionz July 6, 2017 17:44
Copy link
Contributor

@aphelionz aphelionz left a comment

Choose a reason for hiding this comment

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

+1 from me. Great work!

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

Awesome!!! 👏 I only have one really nit-picky little request.

>
<span aria-hidden="true" class="kuiIcon fa-gear"></span>
</button>
</h3>
</div>

<div class="sidebar-item discover-field-details" ng-show="showFilter">
<div class="sidebar-item discover-field-details" ng-show="showFilter" id="discover-field-filter">
Copy link
Contributor

Choose a reason for hiding this comment

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

Really minor nit, but per our HTML style guide, can we write IDs in camel case, for both this ID and the other ones we're adding?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Absolutely not nit-picking, but me not reading the style-guide carefully enough. Thanks for pointing this out. Fixed it. The file itself (and I assume several others) contain quite some more ids not using camel-case. But I think, that needs to be addressed in a different PR.

Copy link
Contributor

@Bargs Bargs left a comment

Choose a reason for hiding this comment

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

LGTM

@timroes timroes dismissed cjcenizal’s stale review July 11, 2017 22:03

Fixed the wrong id styling

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

Looks great!!

@timroes timroes merged commit bdcbdc9 into elastic:master Jul 12, 2017
@timroes timroes deleted the discover-a11y branch July 12, 2017 15:33
@timroes timroes changed the title Fix several a11y issues in the discover app Improve the accessibility of the Discover screen Jul 13, 2017
@timroes timroes added the v6.0.0 label Aug 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessibility: Magnifying Glass Icons in Discovery Field Chooser Missing screen reader text
6 participants