Commit 5e38f7f9 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'pb-make-ci-fe-more-accessible-p1' into 'master'

Add aria labels for job action icons

See merge request gitlab-org/gitlab!84429
parents 52fb6d86 4896ada1
...@@ -171,6 +171,7 @@ export default { ...@@ -171,6 +171,7 @@ export default {
data-testid="cancel-button" data-testid="cancel-button"
icon="cancel" icon="cancel"
:title="$options.CANCEL" :title="$options.CANCEL"
:aria-label="$options.CANCEL"
:disabled="cancelBtnDisabled" :disabled="cancelBtnDisabled"
@click="cancelJob()" @click="cancelJob()"
/> />
...@@ -182,6 +183,7 @@ export default { ...@@ -182,6 +183,7 @@ export default {
v-gl-modal-directive="$options.playJobModalId" v-gl-modal-directive="$options.playJobModalId"
icon="play" icon="play"
:title="$options.ACTIONS_START_NOW" :title="$options.ACTIONS_START_NOW"
:aria-label="$options.ACTIONS_START_NOW"
data-testid="play-scheduled" data-testid="play-scheduled"
/> />
<gl-modal <gl-modal
...@@ -196,6 +198,7 @@ export default { ...@@ -196,6 +198,7 @@ export default {
<gl-button <gl-button
icon="time-out" icon="time-out"
:title="$options.ACTIONS_UNSCHEDULE" :title="$options.ACTIONS_UNSCHEDULE"
:aria-label="$options.ACTIONS_UNSCHEDULE"
:disabled="unscheduleBtnDisabled" :disabled="unscheduleBtnDisabled"
data-testid="unschedule" data-testid="unschedule"
@click="unscheduleJob()" @click="unscheduleJob()"
...@@ -207,6 +210,7 @@ export default { ...@@ -207,6 +210,7 @@ export default {
v-if="manualJobPlayable" v-if="manualJobPlayable"
icon="play" icon="play"
:title="$options.ACTIONS_PLAY" :title="$options.ACTIONS_PLAY"
:aria-label="$options.ACTIONS_PLAY"
:disabled="playManualBtnDisabled" :disabled="playManualBtnDisabled"
data-testid="play" data-testid="play"
@click="playJob()" @click="playJob()"
...@@ -215,6 +219,7 @@ export default { ...@@ -215,6 +219,7 @@ export default {
v-else-if="isRetryable" v-else-if="isRetryable"
icon="repeat" icon="repeat"
:title="$options.ACTIONS_RETRY" :title="$options.ACTIONS_RETRY"
:aria-label="$options.ACTIONS_RETRY"
:method="currentJobMethod" :method="currentJobMethod"
:disabled="retryBtnDisabled" :disabled="retryBtnDisabled"
data-testid="retry" data-testid="retry"
...@@ -226,6 +231,7 @@ export default { ...@@ -226,6 +231,7 @@ export default {
v-if="shouldDisplayArtifacts" v-if="shouldDisplayArtifacts"
icon="download" icon="download"
:title="$options.ACTIONS_DOWNLOAD_ARTIFACTS" :title="$options.ACTIONS_DOWNLOAD_ARTIFACTS"
:aria-label="$options.ACTIONS_DOWNLOAD_ARTIFACTS"
:href="artifactDownloadPath" :href="artifactDownloadPath"
rel="nofollow" rel="nofollow"
download download
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment