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 Visualize screen-reader accessibility. #11599

Conversation

cjcenizal
Copy link
Contributor

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

  • Add aria-label to Tile Map visualization's 'Fit Data Bounds' button.
  • Add aria-label for Visualize Editor sidebar index pattern.
  • Add aria-label to Time Series Visual Builder Annotation icon options.
  • Add aria-label for Time Series Visual Builder AggSelectOption.
  • Add aria-label to Time Series Visual Builder Annotation selected icon option.
  • Adjust aria-labels for Heatmap visualization options.
  • Adjust aria-labels for ValueAxes add and remove buttons.

@cjcenizal cjcenizal force-pushed the 11520/improvement/visualize-screen-reader-accessibility branch from 2215fe5 to ac86388 Compare May 4, 2017 17:23
ng-model="vis.params.setColorRange"
type="checkbox"
class="kuiSideBarSectionTitle__action"
ng-click="toggleColorRangeSection(true)"
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 changes here, just formatting.

aria-label="Show labels"
ng-model="valueAxis.labels.show"
type="checkbox"
class="kuiSideBarSectionTitle__action"
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 changes here, just formatting.

@@ -5,9 +5,10 @@
</div>

<button
aria-label="Add value axis"
data-test-subj="visualizeAddYAxisButton"
aria-label="Add Y axis"
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 you confirm that we should use the term "Y axis" here instead of "value axis"?

<div css-truncate title="{{indexPattern.id}}" ng-if="vis.type.requiresSearch" class="index-pattern">
<div
css-truncate
aria-label="{{:: 'Index pattern: ' + indexPattern.id}}"
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 here instead of title. Because aria-label overrides any text content, we also need to include the index pattern ID here.

>
<span
className="Select-value-label"
aria-label={`${label} icon`}
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. And to provide context, we'll also append the word "icon".

@@ -1,6 +1,7 @@
export function PointSeriesVisProvider({ getService }) {
const remote = getService('remote');
const config = getService('config');
const testSubjects = getService('testSubjects');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

BTW, I think this file needs to be moved into the page_objects directory.

@cjcenizal cjcenizal added Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. :Discovery v5.5.0 v6.0.0 labels May 4, 2017
Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

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

LGTM

@tbragin tbragin added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) and removed :Discovery labels May 10, 2017
- Add aria-label to Tile Map visualization's 'Fit Data Bounds' button.
- Add aria-label for Visualize Editor sidebar index pattern.
- Add aria-label to Time Series Visual Builder Annotation icon options.
- Add aria-label for Time Series Visual Builder AggSelectOption.
- Add aria-label to Time Series Visual Builder Annotation selected icon option.
- Adjust aria-labels for Heatmap visualization options.
- Adjust aria-labels for ValueAxes add and remove buttons.
@cjcenizal cjcenizal force-pushed the 11520/improvement/visualize-screen-reader-accessibility branch from ac86388 to 572f998 Compare May 11, 2017 19:45
@cjcenizal
Copy link
Contributor Author

jenkins, test this

@cjcenizal cjcenizal merged commit 3cb51f4 into elastic:master May 11, 2017
@cjcenizal cjcenizal deleted the 11520/improvement/visualize-screen-reader-accessibility branch May 11, 2017 22:02
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request May 11, 2017
- Add aria-label to Tile Map visualization's 'Fit Data Bounds' button.
- Add aria-label for Visualize Editor sidebar index pattern.
- Add aria-label to Time Series Visual Builder Annotation icon options.
- Add aria-label for Time Series Visual Builder AggSelectOption.
- Add aria-label to Time Series Visual Builder Annotation selected icon option.
- Adjust aria-labels for Heatmap visualization options.
- Adjust aria-labels for ValueAxes add and remove buttons.
@cjcenizal cjcenizal changed the title Improve Visualize screen-reader accessibility: Improve Visualize screen-reader accessibility. May 11, 2017
cjcenizal added a commit that referenced this pull request May 11, 2017
- Add aria-label to Tile Map visualization's 'Fit Data Bounds' button.
- Add aria-label for Visualize Editor sidebar index pattern.
- Add aria-label to Time Series Visual Builder Annotation icon options.
- Add aria-label for Time Series Visual Builder AggSelectOption.
- Add aria-label to Time Series Visual Builder Annotation selected icon option.
- Adjust aria-labels for Heatmap visualization options.
- Adjust aria-labels for ValueAxes add and remove buttons.
snide pushed a commit to snide/kibana that referenced this pull request May 30, 2017
- Add aria-label to Tile Map visualization's 'Fit Data Bounds' button.
- Add aria-label for Visualize Editor sidebar index pattern.
- Add aria-label to Time Series Visual Builder Annotation icon options.
- Add aria-label for Time Series Visual Builder AggSelectOption.
- Add aria-label to Time Series Visual Builder Annotation selected icon option.
- Adjust aria-labels for Heatmap visualization options.
- Adjust aria-labels for ValueAxes add and remove buttons.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) 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