Skip to content

Commit

Permalink
[ML] Add aria-label to calendar and jobs list buttons (#21922)
Browse files Browse the repository at this point in the history
* [ML] Add aria-label to calendar and jobs list buttons

* [ML] Simplify building of Jobs List expanded row icon aria-label
  • Loading branch information
peteharverson authored Aug 14, 2018
1 parent e26cfc6 commit fee34f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function ResultLinks({ jobs }) {
<EuiButtonIcon
href={getLink('timeseriesexplorer', jobs)}
iconType="stats"
aria-label="View results in single metric viewer"
aria-label={`Open ${tooltipJobs} in Single Metric Viewer`}
className="results-button"

/>
Expand All @@ -60,7 +60,7 @@ export function ResultLinks({ jobs }) {
<EuiButtonIcon
href={getLink('explorer', jobs)}
iconType="tableOfContents"
aria-label="View results in anomaly explorer"
aria-label={`Open ${tooltipJobs} in Anomaly Explorer`}
className="results-button"
/>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class JobsList extends Component {
<EuiButtonIcon
onClick={() => this.toggleRow(item)}
iconType={this.state.itemIdToExpandedRowMap[item.id] ? 'arrowDown' : 'arrowRight'}
aria-label={this.state.itemIdToExpandedRowMap[item.id] ? 'Hide details' : 'Show details'}
aria-label={`${this.state.itemIdToExpandedRowMap[item.id] ? 'Hide' : 'Show'} details for ${item.id}`}
data-row-id={item.id}
/>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
ng-attr-tooltip="{{buttonChecks.newButtonWrapperTooltip()}}">
<button
class="kuiMenuButton kuiMenuButton--basic kuiMenuButton--iconText"
title="Edit"
aria-label="Edit {{calendar.calendar_id}}"
ng-disabled='buttonChecks.newButtonDisabled()'
ng-click="editCalendarClick(calendar.calendar_id)">
<span class="kuiMenuButton__icon kuiIcon fa-pencil"></span>
Expand All @@ -114,7 +114,7 @@
ng-attr-tooltip="{{buttonChecks.deleteButtonWrapperTooltip()}}">
<button
class="kuiMenuButton kuiMenuButton--danger kuiMenuButton--iconText"
title="Edit"
aria-label="Delete {{calendar.calendar_id}}"
ng-disabled='buttonChecks.deleteButtonDisabled()'
ng-click="deleteCalendarClick(calendar.calendar_id)"
href="" >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<div class="kuiMenuButtonGroup kuiMenuButtonGroup--alignRight">
<button
class="kuiMenuButton kuiMenuButton--danger kuiMenuButton--iconText"
title="Edit"
aria-label="Delete {{event.description}}"
ng-disabled="lockControls === true"
ng-click="deleteEvent(event)"
href="">
Expand Down

0 comments on commit fee34f7

Please sign in to comment.