-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Improve Visualize screen-reader accessibility. #11599
Conversation
2215fe5
to
ac86388
Compare
ng-model="vis.params.setColorRange" | ||
type="checkbox" | ||
class="kuiSideBarSectionTitle__action" | ||
ng-click="toggleColorRangeSection(true)" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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}}" |
There was a problem hiding this comment.
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`} |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- 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.
ac86388
to
572f998
Compare
jenkins, test this |
- 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.
- 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.
- 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.
Partially addresses #11520. Extracts some work from #11548.