Skip to content

Conversation

@cjcenizal
Copy link
Contributor

Partially addresses #11520. Extracts some work from #11548.

  • Add aria-label for Dashboard Add Panel tabs.
  • Add aria-label for Dashboard Panel title.
  • Refactor empty Dashboard prompt message to improve accessibility.
  • Adjust aria-labels for Dashboard query bar.
  • Adjust aria-labels for Dashboard Landing Page table.
  • Adjust aria-labels and interactive elements of Dashboard Panel actions buttons.

- Add aria-label for Dashboard Add Panel tabs.
- Add aria-label for Dashboard Panel title.
- Refactor empty Dashboard prompt message to improve accessibility.
- Adjust aria-labels for Dashboard query bar.
- Adjust aria-labels for Dashboard Landing Page table.
- Adjust aria-labels and interactive elements of Dashboard Panel actions buttons.
@cjcenizal cjcenizal force-pushed the 11520/improvement/dashboard-screen-reader-accessibility branch from ca9967f to 5030f59 Compare May 4, 2017 17:21
ng-model="model.query"
placeholder="Filter..."
aria-label="Filter input"
aria-label="Enter query"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we confirm that this language makes more sense?

Choose a reason for hiding this comment

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

Makes more sense to me. Do @Bargs or @lukasolson want to weigh in since this terminology is more in your area?

Copy link
Contributor

Choose a reason for hiding this comment

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

Query probably makes more sense to end users since they're using the lucene query syntax. If we're changing the aria-label we should probably change the placeholder text as well right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @Bargs I'll update the placeholder text.


<p class="kuiText kuiVerticalRhythm">
Click the <a class="kuiButton kuiButton--primary kuiButton--small" ng-click="kbnTopNav.open('add'); toggleAddVisualization = !toggleAddVisualization" aria-label="Add visualization">Add</a> button in the menu bar above to add a visualization to the dashboard. <br/>If you haven't set up any visualizations yet, <a class="kuiLink" href="#/visualize">visit the Visualize app</a> to create your first visualization.
</p>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No real changes here, just used UI Framework classes.


<p class="kuiText kuiVerticalRhythm">
Click the <a class="kuiButton kuiButton--primary kuiButton--small" ng-click="kbnTopNav.click('edit');">Edit</a> button in the menu bar above to start working on your new dashboard.
</p>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No real changes here, just used UI Framework classes.

<span
data-test-subj="dashboardPanelTitle"
class="panel-title"
aria-label="{{:: 'Visualization panel: ' + savedObj.title }}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should use aria-label instead of title. I added the "Visualization panel" prefix to give more context.

Choose a reason for hiding this comment

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

This could be a saved search, and once we extend panels to plugins, it might be something else entirely - e.g. input controls or monitoring.

But I don't know, maybe we call all panel types "visualizations"? I think that might get confusing though.

I plan to refactor some of this out so that dashboard knows less about what it's rendering. At that point, the "panelRenderer" can supply a "type" attribute, and we can use that to describe the panel type here. In the mean time, I'll leave it up to you. I plan on having a type attribute anyway to dynamically render the add panel tabs.

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 is a really good point. I think I'll just change this to "Dashboard panel" for now, and we can incorporate the "type" attribute once you add it. Thanks!

@cjcenizal cjcenizal requested review from kobelb and stacey-gammon May 4, 2017 18:09
@cjcenizal cjcenizal added Feature:Dashboard Dashboard related features Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. :Sharing v5.5.0 v6.0.0 labels May 4, 2017
Copy link

@stacey-gammon stacey-gammon 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 16f55d1 into elastic:master May 5, 2017
@cjcenizal cjcenizal deleted the 11520/improvement/dashboard-screen-reader-accessibility branch May 5, 2017 20:21
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request May 5, 2017
* Improve Dashboard screen-reader accessibility:
- Add aria-label for Dashboard Add Panel tabs.
- Add aria-label for Dashboard Panel title.
- Refactor empty Dashboard prompt message to improve accessibility.
- Adjust aria-labels for Dashboard query bar.
- Adjust aria-labels for Dashboard Landing Page table.
- Adjust aria-labels and interactive elements of Dashboard Panel actions buttons.
cjcenizal added a commit that referenced this pull request May 5, 2017
* Improve Dashboard screen-reader accessibility:
- Add aria-label for Dashboard Add Panel tabs.
- Add aria-label for Dashboard Panel title.
- Refactor empty Dashboard prompt message to improve accessibility.
- Adjust aria-labels for Dashboard query bar.
- Adjust aria-labels for Dashboard Landing Page table.
- Adjust aria-labels and interactive elements of Dashboard Panel actions buttons.
snide pushed a commit to snide/kibana that referenced this pull request May 30, 2017
* Improve Dashboard screen-reader accessibility:
- Add aria-label for Dashboard Add Panel tabs.
- Add aria-label for Dashboard Panel title.
- Refactor empty Dashboard prompt message to improve accessibility.
- Adjust aria-labels for Dashboard query bar.
- Adjust aria-labels for Dashboard Landing Page table.
- Adjust aria-labels and interactive elements of Dashboard Panel actions buttons.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Dashboard Dashboard related features Project:Accessibility release_note:enhancement 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.

4 participants