From 27631855af1a9ad90142d95116670f4b3e57105d Mon Sep 17 00:00:00 2001
From: "Phyks (Lucas Verney)"
Date: Wed, 11 Jul 2018 01:14:54 +0200
Subject: [PATCH] Proper aria labels for buttons
---
src/App.vue | 2 +-
src/components/Map.vue | 2 ++
src/components/ReportCard.vue | 6 ++++--
src/components/ReportDialog/index.vue | 1 +
src/i18n/en.js | 8 ++++++++
src/i18n/fr.js | 8 ++++++++
src/views/Map.vue | 6 ++++--
src/views/Settings.vue | 2 +-
8 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index c91eb18..95c7519 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -8,7 +8,7 @@
{{ $t('about.summary') }}
- {{ $t('intro.start') }}
+ {{ $t('intro.start') }}
@@ -21,6 +21,8 @@
color="orange"
class="overlayButton"
@click.native.stop="() => showReportDialog()"
+ role="button"
+ :aria-label="$t('buttons.reportProblem')"
>
report_problem
@@ -30,7 +32,7 @@
{{ error }}
- Retry
+ Retry
diff --git a/src/views/Settings.vue b/src/views/Settings.vue
index bc26873..ed16347 100644
--- a/src/views/Settings.vue
+++ b/src/views/Settings.vue
@@ -16,7 +16,7 @@
v-model="preventSuspend"
>
- {{ $t('settings.save') }}
+ {{ $t('settings.save') }}