diff --git a/website/client/src/components/tasks/task.vue b/website/client/src/components/tasks/task.vue index 542cae8ce2..e101155c06 100644 --- a/website/client/src/components/tasks/task.vue +++ b/website/client/src/components/tasks/task.vue @@ -32,6 +32,9 @@ 'task-not-scoreable': showTaskLockIcon, }, controlClass.up.inner]" tabindex="0" + role="button" + :aria-label="$t('scoreUp')" + :aria-disabled="showTaskLockIcon || (!task.up && !showTaskLockIcon)" @click="score('up')" @keypress.enter="score('up')" > @@ -63,6 +66,7 @@ controlClass.inner, ]" tabindex="0" + role="checkbox" @click="score(showCheckIcon ? 'down' : 'up' )" @keypress.enter="score(showCheckIcon ? 'down' : 'up' )" > @@ -359,6 +363,9 @@ 'task-not-scoreable': showTaskLockIcon, }, controlClass.down.inner]" tabindex="0" + role="button" + :aria-label="$t('scoreDown')" + :aria-disabled="showTaskLockIcon || (!task.down && !showTaskLockIcon)" @click="score('down')" @keypress.enter="score('down')" > diff --git a/website/common/locales/en/tasks.json b/website/common/locales/en/tasks.json index 77551f11a6..48859cd848 100644 --- a/website/common/locales/en/tasks.json +++ b/website/common/locales/en/tasks.json @@ -133,5 +133,7 @@ "addTags": "Add tags...", "enterTag": "Enter a tag", "pressEnterToAddTag": "Press Enter to add tag: '<%= tagName %>'", - "taskSummary": "<%= type %> Summary" + "taskSummary": "<%= type %> Summary", + "scoreUp": "Score up", + "scoreDown": "Score down" }